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
- run
git clone https://github.com/elvisbegovic/ngcc-has-changed.git && cd ngcc-has-changed && npm i && ng s
- kill
ng s
with Ctrl+C - run
ng update --next @angular/cli @angular/core --allow-dirty && ng s
- 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:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR here https://github.com/angular/angular/pull/35079
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.