Skip to content
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

Electron 10 - Fix missing remote module #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krisdages
Copy link

Needed to add enableRemoteModule: true to the BrowserWindow webPreferences.
The default value has changed to false.

@leohxj
Copy link

leohxj commented Jul 13, 2021

it causes this problem: "can't access getCurrentWindow from null."

@krisdages
Copy link
Author

it causes this problem: "can't access getCurrentWindow from null."

Are you using a version of Electron without the remote module? I pushed a version that uses the @electron/remote module instead but it has a minimum Electron version of 10.0.

I published a fork here npm install -S electron-process-manager=@krisdages/electron-process-manager@^2
https://www.npmjs.com/package/@krisdages/electron-process-manager

https://github.com/krisdages/electron-process-manager/tree/feature/electron-remote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants