For some reason every time I update my Ionic/angular 6.0 rc version, I keep getting weird compiler errors I’ve never seen-- Clearing node_modules and reinstalling doesn’t help.
The errors look like this, but it fills up the terminal window completely.
error TS2694: Namespace '"/Users/user/projects/myproject/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
[ng] 26 static ɵinj: i0.ɵɵInjectorDeclaration<IonicModule>;
I keep getting these error messages when trying to update by release candidate version from ^6.0.0-rc.0
to ^6.0.0-rc.2
(I tried at rc.1 as well and I had the same issue).
Here’s my angular version, I can successfully run rc.0 with no issues.
Angular CLI: 11.2.14
Node: 14.15.3
OS: darwin x64
Angular: 11.2.14
... cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.801.3
@angular-devkit/build-angular 0.1001.7
@angular-devkit/core 10.2.3
@angular-devkit/schematics 10.2.3
@schematics/angular 12.2.12
@schematics/update 0.1102.14
rxjs 6.6.7
typescript 4.0.8
Am I updating my release candidate version in a way that is causing this issue? I tried both npm update @ionic/angular
and npm install @ionic/angular@next
and both result in the same issue, where ionic serve
simply doesn’t compile the application.
1 post - 1 participant