You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/electron-oauth2@5.1.1
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
The text was updated successfully, but these errors were encountered:
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/electron-oauth2@5.1.1
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
The text was updated successfully, but these errors were encountered: