254 questions
0
votes
0
answers
97
views
Angular 21 cold start error: platform2.detectOverflow is not a function (Shepherd.js + @floating-ui/dom) — works after refresh
We upgraded our application from Angular 20 to Angular 21.
After the upgrade, we are seeing this runtime error only on cold start (after clearing browser cache and local storage):
TypeError: platform2....
3
votes
2
answers
130
views
Upgrading Angular 14 to Angular 15 throws error on build
Build was successful, but after the installation and update of Angular 15, it started throwing multiple error.
For example:
Error: src/app/shared/components/content/reports/sales/partywise-order/...
0
votes
0
answers
52
views
How can I replace my old Angular landing page with a new Angular 19 + Tailwind template while keeping my existing Metronic 7 dashboard(Angular 15)?
I'm trying to replace the landing page of my existing Angular project with a new template I purchased. Here's the situation:
My original project was built using Angular 13, and it includes a ...
2
votes
1
answer
864
views
Issue with @swimlane/ngx-datatable after upgrading to the latest version in Angular 19
I recently upgraded my Angular project to Angular 19 and updated @swimlane/ngx-datatable to the latest version since version 20.0.0 was not supported. However, after the upgrade, I encountered the ...
1
vote
2
answers
2k
views
How to Upgrade Angular from v16 to v17 with TypeScript 5.2 and Zone.js 0.14.x Dependencies?
I am trying to upgrade my Angular application from version 16 to version 17, but I’m encountering several dependency conflicts that are blocking the process, and I am facing errors during the update.
...
3
votes
1
answer
1k
views
UI glitch issue after updating Angular 19
I updated my angular application from version 18 to 19. after the updation I am facing glitch issue in UI, in detail when a component loads the MDB bootstrap UI like buttons , menu and mat-cards bars ...
1
vote
0
answers
91
views
Error: Debug Failure after updating Angular from 16 to 17 during build or serve
I recently updated my Angular project from version 16 to 17. The update went smoothly, including the installation of node_modules. However, when I attempt to build or serve the project, I get the ...
1
vote
1
answer
363
views
Upgraded Angular -11 to 17, Now DateTimeAdapter (OwlMomentDateTimeModule) Failing on dateTimeAdapter.localeChanges.subscribe
I upgraded from Angular 11 to 17. If I comment out in HTML my OwlDateTimePicker, the app loads fine. Is it really possible the OwlMomentDateTimeModule Moment Adapter just doesn't implement the ...
0
votes
1
answer
184
views
Unable to upgrade properly Angular v15 | Throwing Error | Not able to generate yarn.lock file
I am following the Angular upgrade site and upgrading the MFE's from the same.
Once I run the command ng update @angular/core@15 @angular/cli@15 , it did update the version from v14 to v15 but couldn'...
1
vote
0
answers
78
views
Angular Global CLI not updating
I am trying to update my global Angular CLI version but I can see the previous version always showing.
What I am doing for that:
Uninstall the global angular version (sudo npm uninstall -g angular-...
1
vote
1
answer
401
views
Angular 14 to Angular 17 Migration
Recently, I upgraded my Angular version 14 to 17. After upgrading to 17, I am getting some problems like after installing the npm module getting the error with node_modules which is not expected. ...
0
votes
1
answer
267
views
Upgrade angular 11 to 17 gave errors
I have:
Angular CLI 17
Node: 18.20.2
Package Manager: npm 10.5.0
I have old project with version: 11
I have open it and run npm i thennpm audit fix --force
here I run ng v and got:
@angular-devkit/...
2
votes
1
answer
429
views
Custom angular library upgrade to Angular 14 from 13, giving error on compile "Cannot read assets from a location outside of the project root."
We have an Angular library project which is using another library for images. Some of our scss are using images as background-image from this library. It used to work prior to 14 version without any ...
1
vote
1
answer
614
views
Angular 8 to 17 upgrade: ngModel binding and PrimeNG component issues
I'm upgrading an Angular 8 application to Angular 17 and encountering issues with ngModel binding and PrimeNG components. My application uses a module-based structure with app.module.ts as the main ...
-1
votes
1
answer
88
views
Issue to build angular app after upgrading of angular version 12 to 13
i have successfully upgraded the angular version 12 to 13 but while building with the command "ng build --configuration production --aot --build-optimizer --common-chunk --delete-output-path --...
0
votes
0
answers
172
views
How to upgrade Angular 9 to Angular 15 using Azure DevOps pipeline
I have Angular 15 on Azure server. I have a project having Angular 9, and I need to upgrade it to 15 using Azure DevOps pipeline.
Firstly, when I executed Angular 9 Azure Pipeline, it gave me peer ...
1
vote
0
answers
47
views
Error: No template specified for component for every component after upgrading from Angular 9 to 11
I am working on upgrading a project from Angular 7->18
I have a working angular 9 project, minus so third party controls I need to replace
when upgrading from 9 to 10
I was working on this step
In ...
2
votes
2
answers
715
views
Is it necessary to upgrade Angular project to the latest stable version?
We have a very big project written in Angular. We would like to be up to date with all the libraries we are using. While we try to upgrade Angular from 16 to 17 we face a lot of code refactoring...
My ...
2
votes
1
answer
237
views
After a few rotations of upgrades absolute paths to styles stopped working (Angular 15-17)
I have received an error during serve and build my angular project:
Yesterday I tried to upgrade my angular version from 15 to 17 in another branch where received the same message. So I did a few ...
1
vote
1
answer
114
views
Error: Unexpected value 'StoreRootModule' imported by the module 'CoreModule'. Please add an @NgModule annotation
I updated my Angular version from 15 to 16. The compiler did not give any errors, but the browser console displayed this error:
core.module.ts
imports: [
CommonModule,
StoreModule.forRoot(...
0
votes
1
answer
382
views
Angular Upgrade from v14 to v15
Trying to update angular application from v14 to 15 by following this doc.
https://angular.dev/update-guide?v=14.0-15.0&l=1
Facing below error for any upgrade either cli or core or material giving ...
1
vote
0
answers
90
views
ng test - SyntaxError: Unexpected token '.'
Recently, I upgraded my angular project from v14 to v15. But after the upgrade, on running the test suite using the command ng test, I'm getting the following error:
I addressed the warning shown in ...
0
votes
1
answer
752
views
Error during @angular/core update: Incompatible peer dependencies
I aim to update my existing Angular version to a newer one, specifically targeting version 17.3.0. However, I've run into issues with incompatible peer dependencies during the update process. Below ...
-2
votes
1
answer
897
views
Upgrade angular app from version 8 to v16
I have an Angular project on version 8. I have to update it to Angular 16 using Node 18. I have no idea on what is needed to pay attention during the procedure. I have installed Node 18 and tried to ...
1
vote
0
answers
493
views
Issues related to mdc in css after upgrading angular material to 15
While upgrading angular material from 14 to 15, issues related to mdc have been introduced. Some of the material css were overriden in the previous version of angular and after upgrading due to mdc ...
0
votes
1
answer
318
views
Angular 16 Migration : Compilation issues Not importing modules of bootstrap or any 3rd party libs used
I am upgrading my application from Angular 14 to 16. I am facing lot of compilation issues. All are related to bootstrap and FormModule issues(I imported latest and compatible versions).Error: ./...
0
votes
1
answer
184
views
Upgrade from Angular 7 to 14 - routing problem -redirectTo and canActivate cannot be used together
I get this error Error: NG04014: redirectTo and canActivate cannot be used together. Redirects happen before activation so canActivate will never be executed. after upgrading angular 7 to 14. Anyone ...
0
votes
1
answer
439
views
After upgrade to angular 17 bsdatepicker input [readonly property not working
I upgraded my project to angular 17 after that already working bootstrap date picker ready only propert is not working when inspect readonly propery is not showing .but in htm it is set as readonly as ...
1
vote
0
answers
538
views
After upgrading from angular 14 to 17 RouterModule and custom pipes are broken, giving lots of errors
I almost don't know where to start. Hope you can give me some guidance. After upgrading my angular version to 17 I receive a lot of errors while executing ng serve or build.
I tried to work with ...
2
votes
1
answer
3k
views
Angular 14 to 16 Upgrade : Angular 15 upgraded but not Angular 16
I am upgrading my application from Angular 14 to Angular 16. I am able to upgraded to Angular 15 (by adding couple of more libraries like "ajv": "^8.12.0",fingerprintjs.), when I ...
0
votes
0
answers
261
views
Angular router can't match routes after update (v14 -> v17)
Since the Angular update from version 14 to 15, we have had the problem that our nested router no longer finds the routes, which should obviously be there when the routing is triggered by a click in ...
0
votes
1
answer
407
views
Trying to installing Angular version 15, when latest version installed is 17, throws warning for Unsupported engine
In my System Angular Version 17 was installed. I tried installing Angular 15. To achieve this I tried
npm uninstall -g @angular/cli. Angular is successfully uinstalled.
npm cache clean(this throws ...
0
votes
0
answers
47
views
Updating Angular 5 to Angular 12, Do i need to change anything inside angular-cli.json file
My company asks us to update the angular version 5.2 to angular 12.*. I am following the angular upgrade guide process. There are lot of package we are using in our application.
Q1. Other than naming ...
2
votes
1
answer
703
views
Angular 16 Can't bind to 'ngSwitch' since it isn't a known property of 'div
I recently migrated to Angular 16 from angular 15 , along with custom library upgrade from 8 to 9. In my project I had an array of components named entryComponents. However, the entryComponents is no ...
2
votes
1
answer
381
views
Why does all the Jasmine related it, describe, beforeEach are marked as "Cannot find name ********"?
I have upgraded Angular app from 14 to 15, Angular Material to 15, and then MDC migration.
FYI, rxjs, nodejs, typescript versions mandates have been updated too prior to upgrade.
But in all the spec....
6
votes
2
answers
11k
views
Angular Material 17 - How to get primary color from theme in Style.scss
I have just upgraded angular app from 16 to 17. Application has custom theme as below.
custTheme.scss
@use '@angular/material' as mat;
@include mat.core();
$pp: mat.define-palette(mat.$indigo-...
1
vote
0
answers
120
views
With Mathjax-angular, getting TypeError: Cannot read properties of undefined (reading 'then')
I have recently upgraded Angular app, and so updated Mathjax-angular version too just because new version is available for it. But since then when I run ng test, I am getting unit test errors like:
...
0
votes
1
answer
132
views
Angular upgrade from angular 9 to angular 16, after run ng serve get Error: NG0204 and without any more detail error message
error like this, Any idea what this could be related to?
here error screenshot
I guess it's a config issue, but I've tried many methods to no avail.
0
votes
1
answer
179
views
Angular 16 / universal ssr error 'TypeError: this.delegate.createRenderer is not a function'
After upgrading my angular universal app to version 16, the ssr dev server no longer works. To be specific, it compiles successfully, but then when I try to access the port the server starts on, it ...
1
vote
1
answer
2k
views
Problem upgrading Angular 14 to Angular 16. npm installs angular v17 automatically
I have a project with Angular 14 that needs to be updated to the current Angular LTS version (for today is Angular 16).
I did all steps and was able to resolve manually, but I would like to know what ...
0
votes
1
answer
97
views
Upgrading ionic 5 to 6 led to this breaking changes :Property 'set' does not exist on type 'Config'
Error: src/app/app.component.ts:43:19 - error TS2339: Property 'set' does not exist on type 'Config'.
[ERROR]
[ERROR] 43 this.config.set('backButtonText', this.translateService.instant('button....
2
votes
1
answer
1k
views
Error : NG0204 with no specific details after Angular upgrade from 15 to 16
I have been working on this task to upgrade from angular 15 to 16. After upgrading to 16 I am seeing this Error: NG0204 error in the console on serving my app. No additional information is provided (...
0
votes
1
answer
306
views
Facing peer dependency errors for ngx-responsive after upgrading Angular from version 15 to 16
Earlier version of Angular: 15.2.0 and Node: was 14.21.3
Now we are upgrading the Angular from 15.2.0 to 16.2.9 and we are facing many peer dependencies.
In our code we are using Angular Material, ...
0
votes
1
answer
250
views
Angular 8.2 Type 'Subscription' is missing the following properties from type
I´m upgrading a legacy project from angular 7.2 to 8.2 and after it, when I execute ng serve it shows this error:
ERROR in app/service/broadcast.service.ts:21:5 - error TS2740: Type 'Subscription' is ...
1
vote
0
answers
625
views
After Angular upgrade to 16 ng s throws error - Class extends value undefined
I have upgraded Angular from version 15 to 16
And also have upgraded all the dependency packages in my app to latest versions
After Npm i and on running ng serve it throws error as
An unhandled ...
0
votes
1
answer
1k
views
Angular 16: ngCharts: TypeError: chart_js__WEBPACK_IMPORTED_MODULE_0__.registerables is not iterable (cannot read property undefined)
ERROR Error: Uncaught (in promise): TypeError: chart_js__WEBPACK_IMPORTED_MODULE_0__.registerables is not iterable (cannot read property undefined)
TypeError: chart_js__WEBPACK_IMPORTED_MODULE_0__....
22
votes
7
answers
36k
views
How to upgrade badly outdated angular project?
We are upgrading large scale angular app from 6 to 17. Like everybody else I have also been following Angular Upgrade Guide: but that always talks about upgrading one version at a time.
Our app has ...
1
vote
0
answers
1k
views
Error: Inlining of fonts failed. Connection TImedOut after upgrading Angular 11 to 12
I have upgraded my project from Angular 11 to 12. Below is the version I am using. But while compiling, it fails.
Error: Inlining of fonts failed. An error has occurred while retrieving https://fonts....
1
vote
0
answers
1k
views
Angular "An asset cannot be written to a location outside of the output path" after update to v16
I was trying to update an Angular app to Angular 16 (from Angular 15), but I get the following error after the update process when running npm run start:
An unhandled exception occurred: An asset ...
10
votes
2
answers
3k
views
Why does Router Event throws only scroll event post angular update from 13 to 15.2.9
I upgraded the angular version from 13 to 15.2.9 and I observed is the Router Functionality is breaking. The Router Event is only throwing SCROLL EVENT Instead Navigation End. Please suggest where am ...