Questions related to upgrading AngularJS (v1.x) application to Angular (v2+). This tag should be used for questions related to preparing AngularJS application for upgrade, running a hybrid AngularJS/Angular application, and transitioning out of hybrid mode.
Questions tagged [angular-upgrade]
213 questions
5
votes
0 answers
Unit test cases are not running after upgrading to Angular 12
Upgraded project from Angular version 5 to 12. The project is running fine but the unit test cases are not running, and just showing
Karma v 6.3.17 - connected; test: execute;
PhantomJS 2.1.1 (Windows 8) is idle
Chrome 99.0.4844.74 (Windows 10) is…

ATP
- 51
- 1
5
votes
3 answers
Unable to upgrade from angular 12 to angular 13
I've an Angular 12 app, which I'm trying to upgrade to angular 13.
According to https://update.angular.io/?l=2&v=12.0-13.0 I should run:
npx @angular/cli@13 update @angular/core@13 @angular/cli@13
But when I do, I get the following error:
npx…

J4N
- 19,480
- 39
- 187
- 340
5
votes
7 answers
Angular CLI v13 - Can not run "ng" commands
I upgraded Angular CLI to v13 globally, and when I try to use ng command it gives me this error:
I saw here that Angular v13 is compatible with Node v16.10.x so I installed Node v16.10.0 and it does not work again.
I perform standard…

NeNaD
- 18,172
- 8
- 47
- 89
5
votes
1 answer
Updating Angular Local Library Project
I've an Angular project in 7.1. I have also created 2 angular libraries which are used in my project. I'm upgrading my project from 7.1 to 8.2. I ran the following command for the upgrade which upgraded my angular project.
ng update @angular/cli@8…

Himal Patel
- 387
- 4
- 19
5
votes
4 answers
Angular 9 to 10 upgrade - Typescript compilation warnings : *.ngtypecheck.ts
Post my upgrade from Angular 9 to Angular 10. ng build --prod throws the Typescript compilation unused warnings:
.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your…

Mbk
- 51
- 1
- 5
5
votes
3 answers
Upgrade Angular - Two or more projects are using identical root warning
For updating Angular 8 to 9,
I am following the official document to upgrade.
Which suggests first updating to the latest version of angular 8, like:
ng update @angular/core@8 @angular/cli@8
However, I am getting three warnings (all the same):
npm…

Hwang
- 61
- 1
- 4
5
votes
3 answers
Is this correct, ng update --all only shows the upgrade options available?
If I run the command
ng update
I see a listing of items such as
@angular/cdk 6.4.7 > 8.2.0 ng update @angular/cdk
...
...
There might be additional packages that are outdated.
Or run ng update --all to try and update all at the same time.
It…

edjm
- 4,830
- 7
- 36
- 65
5
votes
2 answers
Upgrading AngularJS app to an hybrid Angular-1.6 / Angular-4 kills the perf
I've just updated my AngularJS 1.6 app by following the Angular 4 upgrade guide. Basically I've added new angular 4 dependencies in package.json, bootstrapped the app via UpgradeModule and created a new simple component in angular 4. Everything…

Adrien Chauve
- 93
- 1
- 6
4
votes
1 answer
ERROR in @ViewChild options must be an object literal in angular 9
I have upgraded my Angular project from Angular version 8 to Angular version 9. it was upgraded successfully but when I am running the project on localhost or when I am trying to build my project it is giving me the following error.
ERROR in…

Jayesh Vyas
- 1,145
- 3
- 15
- 35
4
votes
0 answers
NX.Dev migration from 11 to 12 failed with "EBUSY: resource busy or locked"
On our project, we are using NX.Dev Workspace of version 11.5.1 with Angular of version 11.2.0 and we are trying to update to latest Angular (12.0.5), but once I run command nx migrate latest (which is suggested to me by NX.Dev) I always end-up with…

Pajchel
- 41
- 2
4
votes
1 answer
Angular 12 post-upgrade styling issue
We upgraded angular version from 11 to 12 and the stylings are not applied in production build.
If I run the application in dev build I dont see the styling issues but this occurs only when we do the prod build.
I see in angular 12 ng build --prod…

Mahesh Dharwad
- 79
- 1
- 8
4
votes
2 answers
Angular 9 upgrade peer dependency issue
When I try to upgrade angular using its documentation to version 9, I get following peer dependency error:
Package "@angular/compiler-cli" has a missing peer dependency of "tslib" @ "^1.10.0".
Package "@angular/animations" has a missing peer…

Shambhawi Kumari
- 53
- 1
- 5
4
votes
3 answers
upgrading to angular9 issue: Failed to find exported name of node
After Upgrading to Angular 9 and trying to run my project I got this error :
Compiling @angular/common/http : module as esm5
Compiling angular-font-awesome : module as esm5
Compiling angular-font-awesome : module as esm5
Error: Error on worker #5:…

ghaidaBouchaala
- 111
- 1
- 8
4
votes
2 answers
Primeng calendar module angular 9
I use angular 9, primeng 9
I have my module : ItemModule :
import { CalendarModule } from 'primeng/calendar';
@NgModule({
imports: [
CalendarModule
.....
],
.....
})
But I get the error :
ERROR in…

frint
- 771
- 1
- 7
- 14
4
votes
1 answer
Testing UpgradeComponent throws NullInjectorError: No provider for $injector! error
I have a angularjs component that I am upgrading:
import { Directive, ElementRef, Injector, Output, EventEmitter } from '@angular/core';
import { UpgradeComponent } from '@angular/upgrade/static';
@Directive({
selector: 'up'
})
export class…

lostintranslation
- 23,756
- 50
- 159
- 262