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

Not work with electron@14 since enableRemoteModule removed #71

Closed
kku39 opened this issue Aug 23, 2021 · 6 comments · Fixed by #72
Closed

Not work with electron@14 since enableRemoteModule removed #71

kku39 opened this issue Aug 23, 2021 · 6 comments · Fixed by #72
Labels

Comments

@kku39
Copy link

kku39 commented Aug 23, 2021

I am testing electron@14.0.0-beta.23 with my project, also using @electron/remote@1.2.1.

It raises error:

electron/js2c/renderer_init.js:81 Error: @electron/remote is disabled for this WebContents. Set {enableRemoteModule: true} in WebPreferences to enable it.

, though I already set enebleRemoteModule: true and it works well with electron@13.

I guess this may already be being addressed for the standard release, but I wanted to report it just in case, thanks :)

@marcoancona
Copy link

14.0.0 stable is now released

@kku39
Copy link
Author

kku39 commented Sep 1, 2021

Thanks for informing.

I tried with electron@14.0.0 and same issue occurred.

The error raises and the app not works.

Could you guys check it out again, please?

@kku39 kku39 changed the title Not work with electron@14beta since enableRemoteModule removed Not work with electron@14 since enableRemoteModule removed Sep 1, 2021
@artus9033
Copy link
Contributor

Indeed, the issue exists in v14. Turns out there is no way to enable the remote module for now - the enableRemoteModule option has been removed, although @electron/remote requires it to be enabled.

@artus9033
Copy link
Contributor

After experimentally checking the approach, it seems like simply disabling the enableRemoteModule check fixes the issue on electron@14. I added a PR with conditionally disabled check in case of electron >= 14.

@nomagick
Copy link

nomagick commented Sep 2, 2021

Related electron/electron#30789

@electron-bot
Copy link

🎉 This issue has been resolved in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

5 participants