seemaweb / angular

Mobile & desktop,One framework.
MIT License
0 stars 0 forks source link

The ngcc compiler has changed since the last ngcc build #1

Open MSafter opened 5 years ago

MSafter commented 5 years ago

🐞 bug report

Affected Package

@angular/cli

Description

I've enabled the ivy renderer and started to serve my Angular Application. I've got log output like compiling @angular/core: es2015 as esm2015. But at some point the compiling failed because of the error "ERROR in The ngcc compiler has changed since the last ngcc build. Please completely remove node_modules and try again."

So I removed the node_modules and retried but still the error resumes.

🔥 Exception or Error


ERROR in The ngcc compiler has changed since the last ngcc build.
Please completely remove `node_modules` and try again.

🌍 Your Environment

Angular Version:


   _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 8.0.0
Node: 12.4.0
OS: darwin x64
Angular: 8.0.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.3
@angular-devkit/build-angular     0.800.3
@angular-devkit/build-optimizer   0.800.3
@angular-devkit/build-webpack     0.800.3
@angular-devkit/core              8.0.3
@angular-devkit/schematics        8.0.0
@angular/cli                      8.0.0
@angular/flex-layout              8.0.0-beta.26
@ngtools/webpack                  8.0.3
@schematics/angular               8.0.0
@schematics/update                0.800.0
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.30.0

ErVishalM commented 5 years ago

I got the same error when i enabled ivy and tried to ng serve.

ERROR in The ngcc compiler has changed since the last ngcc build.
Please completely remove `node_modules` and try again
ErVishalM commented 5 years ago

I updated my two packages core and angular - cli and tried to do the ng serve then i got this error.

ERROR in The ngcc compiler has changed since the last ngcc build.
Please completely remove `node_modules` and try again