Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install a New Build and getting cli-truncate errors #3441

Open
3 tasks done
cornellb28 opened this issue Dec 12, 2023 · 2 comments
Open
3 tasks done

Install a New Build and getting cli-truncate errors #3441

cornellb28 opened this issue Dec 12, 2023 · 2 comments

Comments

@cornellb28
Copy link

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

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.

@cornellb28
Copy link
Author

my current dependencies:
"glob": "^10.3.10",
"lodash": "^4.17.21",
"node-id3": "^0.2.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0"

@jasonlamclay
Copy link

Hi! Was there any resolution to this? I'm running into this issue right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants