Describe the bug
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
Link to the blitz that caused the error
https://stackblitz.com/edit/m7nmdq?file=src%2Fmain.ts
Steps to reproduce
- Generate a ready-made Angular sample project
- Log in
- Fork the generated project
- Install dependencies
- Start with 'ng serve'
- Error
Expected behavior
The project should just start.
Parity with Local
Screenshots

Platform
- OS: Windows 10 64-bit
- Browser: Firefox
- Version: 112.02
Additional context
No response
Describe the bug
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 serveat all. Here is the error:Link to the blitz that caused the error
https://stackblitz.com/edit/m7nmdq?file=src%2Fmain.ts
Steps to reproduce
Expected behavior
The project should just start.
Parity with Local
Screenshots
Platform
Additional context
No response