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
Describe the bug
Electron 5.0.0-beta6 'require' not available in current version w/o changing main.js
To Reproduce
Steps to reproduce the behavior:
Add Greengrinds plugin to C3 project
Change config.js to use: electron: '5.0.0-beta.6'
Export app from c3p, build with efc and run app.
Expected behavior
Expect Greengrinds plugin which uses the node 'require' to work w/ no error messages.
Error Code
From running application on dev console:
main.js:139 [Construct 3] Failed to load Greenworks: ReferenceError: require is not defined
at GreenworksDOMHandler._Load (main.js:76)
at main.js:31
at f._OnEventFromRuntime (main.js:5)
at f._OnMessageFromRuntime (main.js:5)
at MessagePort._messageChannelPort.onmessage (main.js:5)
Describe the bug
Electron 5.0.0-beta6 'require' not available in current version w/o changing main.js
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect Greengrinds plugin which uses the node 'require' to work w/ no error messages.
Error Code
From running application on dev console:
main.js:139 [Construct 3] Failed to load Greenworks: ReferenceError: require is not defined
at GreenworksDOMHandler._Load (main.js:76)
at main.js:31
at f._OnEventFromRuntime (main.js:5)
at f._OnMessageFromRuntime (main.js:5)
at MessagePort._messageChannelPort.onmessage (main.js:5)
Comments
Armaldio:
That's normal
https://github.com/electron/electron/blob/master/docs/api/breaking-changes.md#planned-breaking-api-changes-50
GitHub
electron/electron
Build cross-platform desktop apps with JavaScript, HTML, and CSS - electron/electron
in main.js
set webpreference.nodeIntegration to true
Desktop (please complete the following information):
Additional context
Exploring 5.0+ for update chromium version which some C3 features require (e.g. C3 screen recording.)
The text was updated successfully, but these errors were encountered: