Skip to content

Request to update Β #3

@pkzOR

Description

@pkzOR

I'm trying to use your OAuth plugin in a CapacitorJS generated version of an Electron app.

I've added "@advanced-rest-client/electron-oauth2": "^5.1.1", to the electron/package.json.
but that generates a npm error:
Could not resolve dependency:
npm ERR! peer electron@"^13.1.1" from @advanced-rest-client/[email protected]

We are using Electron 19.0.0. This seems like an npm error, so I run npm install --force to get the app to build.

When I run the app I get:

SyntaxError: The requested module 'file:///xxxx/electron/electron' does not provide an export named 'BrowserWindow'
at Object. (xxxx\electron\node_modules@advanced-rest-client\electron-oauth2\lib\Oauth2Identity.js:1)
at Generator.next ()
at Object. (xxxx\electron\node_modules@advanced-rest-client\electron-oauth2\main.js:1)
at Generator.next ()
at Object. (xxxx\electron\node_modules@advanced-rest-client\electron-oauth2\index.js:2:18)
at Object. (xxxx\electron\node_modules@advanced-rest-client\electron-oauth2\index.js:4:3)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)

I am wondering if you could update your package (5.1.2) to use a newer version of electron to avoid --force and any other changes that may fix the runtime error.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions