New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'app' of undefined #20
Comments
The only case this could happen is if Could you add |
Find a solution for this? I'm getting the same issue. |
I believe electron.remote has been deprecated but it is referenced by the Edit: Corrected Link |
This may be unrelated but I found this thread because I had the same error when trying to run a new quasar electron project out of the box. I found that I needed to change "quasar dev -m electron" to "sudo quasar dev -m electron" and run as administrator. It then worked immediately. |
enableRemoteModule=true |
I've gotten same issue. But I fixed it thanks for the comment of @masteroleary. My issue occured by |
Trying to get
concurrently
+electron
+create-react-app
working nicely together. However, upon launching Electron, I am getting an error that statesTypeError: Cannot read property 'app' of undefined
fromnode_modules\electron-is-dev\index.js
.It's pointing to the
const app = electron.app || electron.remote.app;
.Here's my package.json:
I'm using the
start
script to run the project.Here's my
start.js
files for Electron:I have Electron installed locally, and not globally, if it makes a difference. Would love to know why
const app = electron.app || electron.remote.app;
doesn't resolve.The text was updated successfully, but these errors were encountered: