angular-fundamentals-files icon indicating copy to clipboard operation
angular-fundamentals-files copied to clipboard

Problems after write routes

Open wesli11 opened this issue 2 years ago • 2 comments

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 {

wesli11 avatar Jan 16 '23 21:01 wesli11

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" },

berengere13 avatar Mar 09 '23 14:03 berengere13

Thanks for your answer, i solve it

wesli11 avatar Apr 01 '23 09:04 wesli11