Reputation: 127
I faced problem after first time installing xng-breadcrumb 9.0.0. My app after ng serve
cannot start:
TypeError: Cannot create property 'message' on string 'C:\Users\...\node_modules\xng-breadcrumb\fesm2015\xng-breadcrumb.mjs: This application depends upon a library published using Angular version 14.0.0, which requires Angular version 14.0.0 or newer to work correctly.
It seams that I have too old version of Angular which I think isn't old:
Is it problem related to compatibility of versions? Or what can caauses this issue and hhow can I solve it?
I tried to install older version of xng-breadcrumb but same result.
I can add that I have just updated Angular and Node.js today if it's matter.
Thanks for help for newbie.
Edit:
I suppose that now everything is updated:
But after that I faced other problem (I don't know if screenshots are more acceptable rather than of piece of code):
The first issue I fixed this way:
// @import "~bootstrap/scss/bootstrap";
@import "node_modules/bootstrap/scss/bootstrap";
But stays the second problem with: Property 'get' in type 'ToastInjector' is not assignable to the same property in base type 'Injector'.
Upvotes: 0
Views: 698
Reputation: 127
The solution was to update @angular-devkit/build-angular
and @angular-devkit/core
by using commannds:
npm install @angular-devkit/core
ng update @angular-devkit/build-angular
Upvotes: 0