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
Error [ERR_REQUIRE_ESM]: require() of ES Module /test-electron/forge.config.js from /test-electron/node_modules/@electron-forge/core/dist/util/forge-config.js not supported.
Instead change the require of forge.config.js in /test-electron/node_modules/@electron-forge/core/dist/util/forge-config.js to a dynamic import() which is available in all CommonJS modules.
According to the error message adding the ESM support should be pretty easy.
Activity
mahnunchik commentedon Sep 18, 2023
According to the error message adding the ESM support should be pretty easy.
mahnunchik commentedon Sep 18, 2023
Monkey patch of this file makes ESM config works!
sebbean commentedon Jan 15, 2025
this worked for me!
#3671 (comment)