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.
Pre-flight checklist
Problem description
As ESM will lended in electron 28 electron/electron#37535 (comment) so it is useful to have ESM support in
forge.config.js
Proposed solution
ESM support ;)
Alternatives considered
I don't know any reason to not support ESM
Additional information
No response
The text was updated successfully, but these errors were encountered: