angular-fundamentals-files
angular-fundamentals-files copied to clipboard
Problems after write routes
Error: ./node_modules/@angular/router/ivy_ngcc/fesm2015/router.js 43:12 Module parse failed: Identifier 'ɵngcc0' has already been declared (43:12) File was processed with these loaders:
- ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
- ./node_modules/@ngtools/webpack/src/ivy/index.js You may need an additional loader to handle the result of these loaders. | import * as ɵngcc0 from '@angular/core'; | import * as ɵngcc1 from '@angular/common';
import * as ɵngcc0 from '@angular/core'; | import * as ɵngcc1 from '@angular/common'; | class RouterEvent {
Hello,
Same bug for me !
You have to update your all angular version to 11.2.6 in your package.json (see this issue https://github.com/angular/angular/issues/41198)
"dependencies": { "@angular/animations": "11.2.6", "@angular/common": "11.2.6", "@angular/compiler": "11.2.6", "@angular/core": "11.2.6", "@angular/forms": "11.2.6", "@angular/platform-browser": "11.2.6", "@angular/platform-browser-dynamic": "11.2.6", "@angular/router": "11.2.6", "ngf-bootstrap": "0.0.5", "rxjs": "6.6.0", "toastr": "^2.1.4", "tslib": "^2.0.0", "zone.js": "0.11.3" },
Thanks for your answer, i solve it