question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

clean previous ngcc ivy entrpoints works when running ng update

See original GitHub issue

🚀 Feature request

Command

  • serve
  • update

Description

Actually updating a project with ng update is not straightforward, if an update exist it update package.json versions and run npm i correctly. But now running ng serve always throw this known error:

ERROR in The ngcc compiler has changed since the last ngcc build. Please remove “C:/Users/e…/ngcc-has-changed/node_modules” and try again.

Here we realize we need again remove node_modules and rerun npm i This task is long and not automatic, or something escapes me?

Repro

Following my repro project which has fixed ng version to 9.0.0-rc.9

  1. run git clone https://github.com/elvisbegovic/ngcc-has-changed.git && cd ngcc-has-changed && npm i && ng s
  2. kill ng s with Ctrl+C
  3. run ng update --next @angular/cli @angular/core --allow-dirty && ng s
  4. error thrown

Describe the solution you’d like

Clean previous ngcc ivy entrypoints works in node_modules during ng update command, so they could be again compiled when rerun ng s after update finish.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
petebacondarwincommented, Jan 31, 2020
0reactions
angular-automatic-lock-bot[bot]commented, Mar 3, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 11 is not running ngcc - ivy - Stack Overflow
My problem was that an another tsconfig file was overwriting the root's definitions, and turned off ivy and ngcc altogether.
Read more >
Angular 12 in Depth - Sébastien Dubois
In case you didn't know, ngcc is the small process that runs after you create an Angular project or install dependencies.
Read more >
We really love Angular...10x as much this time
js, you can simply delete it, then clean your project using a similar npm script shown above to clean and when you rerun...
Read more >
Angular Ivy
CLI commands run ngcc as needed when performing an Angular build. ... installation of node_modules , including those performed by ng update and...
Read more >
@angular/cli | Yarn - Package Manager
eda96def4, fix, use global version of the CLI when running ng new ... This option was used pre Ivy. ... clean node modules...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found