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
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
23.0.0, 24.0.0, 25.0.0
What operating system are you using?
Windows
Operating System Version
Windows, MacOS
What arch are you using?
x64
Last Known Working Electron version
22.0.0
Expected Behavior
When calling window.open('about:blank') any subsequential require should go fine.
Actual Behavior
Starting from Electron 23, after window.open('about:blank') any subsequential require gives the following error:
node:vm:129 Uncaught TypeError: Script methods can only be called on script instances.
at Script.runInThisContext (node:vm:129:12)
at wrapSafe (node:internal/modules/cjs/loader:1177:19)
at Module._compile (node:internal/modules/cjs/loader:1225:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
at Module.load (node:internal/modules/cjs/loader:1124:32)
at Module._load (node:internal/modules/cjs/loader:965:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at o._load (node:electron/js2c/renderer_init:2:3109)
at Module.require (node:internal/modules/cjs/loader:1148:19)
at require (node:internal/modules/cjs/helpers:110:18)
See test case, just click on run test and open the devtools
Preflight Checklist
Electron Version
23.0.0, 24.0.0, 25.0.0
What operating system are you using?
Windows
Operating System Version
Windows, MacOS
What arch are you using?
x64
Last Known Working Electron version
22.0.0
Expected Behavior
When calling
window.open('about:blank')
any subsequential require should go fine.Actual Behavior
Starting from Electron 23, after
window.open('about:blank')
any subsequential require gives the following error:See test case, just click on run test and open the devtools
require_bug.zip
Testcase Gist URL
No response
Additional Information
Might be related to: #37404
and maybe solved with #37506 however this fix seems to have not made it
@codebytere if you can have a look please, it is really stopping us from upgrading to 23+ versions of Electron.
The text was updated successfully, but these errors were encountered: