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 have been watching Angular Getting Started tutorial. I have generated a sample project and installed dependencies. But the project couldn't start after ng serve at all. Here is the error:
$ ng serve
Unknown error: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/projects/m7nmdq/node_modules/cliui/node_modules/string-width/index.js from /home/projects/m7nmdq/node_modules/cliui/build/index.cjs not supported.
Instead change the require of index.js in /home/projects/m7nmdq/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules.
~/projects/m7nmdq 56s
Activity
SamVerschueren commentedon May 2, 2023
Can you try this again? It seems to work on my end 🤔.
jrvidal commentedon May 3, 2023
I can reproduce, thanks for reporting.
jrvidal commentedon May 3, 2023
This seems to be an artifact of our NPM replacement,
turbo.We are actually planning on releasing an unmodified version of the NPM package manager in the near future, and that should solve this issue.
We're now tracking this internally, we'll update it accordingly.
Thanks for the report again!
jrvidal commentedon May 10, 2023
I'm closing this as a duplicate of #1070, you can track progress there!