MarshallOfSound / react-electron-web-view

A simple wrapper to make Electrons WebView compatible with React
MIT License
65 stars 30 forks source link

Need to add 'enableRemoteModule' and 'contextIsolation' to support newer electron (eg 14)? #35

Open vraravam opened 3 years ago

vraravam commented 3 years ago

I was trying to debug why I keep getting the following error:

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

The suspicion that I have is that this is not defined in the constants file as a props element. Could you please confirm if this is the case or whether I need to go down a different line of thinking?

I'm trying to upgrade to electron 14, and the code can be found in this PR comment

vraravam commented 2 years ago

This is now completely broken with electron 16. Any help please?