Skip to content

Can't start Angular Starter project #1055

Closed as not planned
Closed as not planned

Description

@IArnaut2

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

  1. Generate a ready-made Angular sample project
  2. Log in
  3. Fork the generated project
  4. Install dependencies
  5. Start with 'ng serve'
  6. Error

Expected behavior

The project should just start.

Parity with Local

Screenshots

image

Platform

  • OS: Windows 10 64-bit
  • Browser: Firefox
  • Version: 112.02

Additional context

No response

Activity

  1. SamVerschueren commented on May 2, 2023

    @SamVerschueren
    Contributor

    Can you try this again? It seems to work on my end 🤔.

  2. jrvidal commented on May 3, 2023

    @jrvidal
    Contributor

    I can reproduce, thanks for reporting.

  3. jrvidal commented on May 3, 2023

    @jrvidal
    Contributor

    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!

  4. jrvidal commented on May 10, 2023

    @jrvidal
    Contributor

    I'm closing this as a duplicate of #1070, you can track progress there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtracked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions