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 /UserRoot/app_folder/the-app/node_modules/string-width/index.js from /UserRoot/app_folder/the-app/node_modules/cli-truncate/index.js not supported.
Instead change the require of /UserRoot/app_folder/the-app/node_modules/string-width/index.js in /UserRoot/app_folder/the-app/node_modules/cli-truncate/index.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/UserRoot/app_folder/the-app/node_modules/cli-truncate/index.js:3:21) {
code: 'ERR_REQUIRE_ESM'
}
Steps to reproduce
yarn run start
Additional information
I have not done any heavy coding. Just all installs.
The text was updated successfully, but these errors were encountered:
Pre-flight checklist
Electron Forge version
7.2.0
Electron version
28.0.0
Operating system
macOS 13.5.1
Last known working Electron Forge version
7.2.0
Expected behavior
Install npm packages to start application
Actual behavior
Getting an error of
/UserRoot/app_folder/the-app/node_modules/cli-truncate/index.js:3
const stringWidth = require('string-width');
Error [ERR_REQUIRE_ESM]: require() of ES Module /UserRoot/app_folder/the-app/node_modules/string-width/index.js from /UserRoot/app_folder/the-app/node_modules/cli-truncate/index.js not supported.
Instead change the require of /UserRoot/app_folder/the-app/node_modules/string-width/index.js in /UserRoot/app_folder/the-app/node_modules/cli-truncate/index.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/UserRoot/app_folder/the-app/node_modules/cli-truncate/index.js:3:21) {
code: 'ERR_REQUIRE_ESM'
}
Steps to reproduce
yarn run start
Additional information
I have not done any heavy coding. Just all installs.
The text was updated successfully, but these errors were encountered: