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
0
votes
1 answer
An unhandled exception occurred: error TS5024: Compiler option 'sourceMap' requires a value of type boolean
I am updating my angular code version from 4.0.0 to latest. Instead of updating it all together from version 4.0.0 to 9.1.2, as a recommendation I tried doing it to version 6.0.0 first and then to 8.0.0 and finally to version 9.1.2. But while doing…

Raj
- 83
- 10
0
votes
1 answer
No provider for CompilerFactory after upgrade to Angular 9
After I upgrade from 8 to 9, I am getting this error
Uncaught NullInjectorError: StaticInjectorError(Platform: core)[CompilerFactory]:
NullInjectorError: No provider for CompilerFactory!
below are the code for my main.ts
import {…

Hwang
- 61
- 1
- 4
0
votes
1 answer
Advice/Insight: How to safely update an Angular 4 app to Angular 6
I'm about to go head first into doing a MAJOR versioning upgrade for a legacy Angular 4 app into an Angular 6 app. I figured I could push the envelope into version 6 at most without completeley bricking the app.
That said, I know I'm about to enter…

markreyes
- 1,249
- 1
- 13
- 27
0
votes
1 answer
Build failing after angular upgrade from 4.4 to 8
I have upgraded my project from angular 4.4 to 8
Everything is working fine when is run ng serve application is also working fine.
but when i run command ng build --prod it is giving me following error
ERROR in Type HighchartsChartComponent in…

Sushrut Singh Sisodiya
- 942
- 6
- 11
0
votes
1 answer
Angular update failing on incorrectly "resolved" address
Morning all,
I am currently trying to update Angular from 7.1.0 to 8.3.23.
We have a custom package stored on our DevOps server. I am able to retrieve the package with npm when I delete the directory and 'npm install package-name'. So far, all…

LeosSire
- 93
- 3
- 13
0
votes
1 answer
Why does Angular recommend to use a FactoryProvider for upgraded ajs services, instead of an InjectionToken?
In their documentation, they use this FactoryProvider example for upgrading ajs services:
import { HeroesService } from './heroes.service';
export function heroesServiceFactory(i: any) {
return i.get('heroes');
}
export const…

CShark
- 1,562
- 1
- 16
- 27
0
votes
1 answer
Angular 6 with UpgradeModule cant resolve all parameters for ApplicaitonModule
I have migrated and old AngularJS application to run, with Angular 5, in upgrade mode using the UpgradeModule. Everything is working I have some services migrated to Angular and utilise some more modern libs, like ngx-translate. It was all working…

Gurnard
- 1,773
- 22
- 43
0
votes
1 answer
Error while loading controllers - migrating AngularJS1 to Angular6
I'm trying to do upgrade components written in AngularJS1 to Angular6. I'm taking the approach of having the wrappers for all the existing AngularJS1 component by extending "UpgradeComponent" placed under the folder "directive-wrappers" in my…

Krishnan
- 958
- 5
- 21
- 44
0
votes
2 answers
How to update angular project version 5 for version 7
my project is currently at version 5.2 and would like to upgrade to angular version 7.2.15, how to do it the easiest and fastest way, follow my dependencies package.json
"dependencies": {
"@agm/core": "^1.0.0-beta.3",
"@angular/animations":…

Nikolas Soares
- 479
- 2
- 4
- 13
0
votes
1 answer
After Angular 5->8 upgrade, Material dialogs show up in DOM, but do not render on screen
After completing an upgrade from Angular 5 to 8, almost everything works, except the Material modal dialogs. Using the browser debugger, we can see that the structure is in the DOM, but they don't get drawn.
We were using the No-op animator module…

Chris
- 73
- 1
- 9
0
votes
0 answers
Approach and Methods for migrating AngularJS 1.4 app to Angular 8
I am trying to upgrade a large Enterprise application from AngularJS v1.4 to Angular 8 and trying to look for various approaches for the same.
Since we are on angularJS1.4, we cannnot use ngUpgrade Module provided by Angular team because in order…

Alok
- 98
- 1
- 6
0
votes
1 answer
Angular upgrade - How to navigate to a state defined in Angularjs from Angular template?
Currently i am upgrading an Angularjs 1.6 app into Angular 7. As part of this migration i have to navigate to a state defined in Angularjs from Angular template. How can i achieve this?
I have tried angular-hybrid router approach, but it didn't…
0
votes
0 answers
Possible to have AngularJs and Angular (v7) in the same application?
We have a AngularJs site and we are planning to upgrade to Angular.
I understand that there is ngUpgrade but I am thinking to have Angular in the same application but only use it for the new pages so that the existing/current pages work the same…

May Myatnoe
- 107
- 9
0
votes
1 answer
What is the correct method for upgrading Angular Project from V2 -> V7?
I am tasked with upgrading a medium Angular V2.0.1 project to Angular V7.1.4 (latest stable version). I have worked with Angular a lot in the past and upgraded from V2 -> V4 and V4 -> V5 for a different Angular project in the past. These upgrades…

Kevin Quiring
- 639
- 1
- 11
- 26
0
votes
0 answers
Angularjs selectors migration to Angular 6
Currently in the less there is:
.ng-click-active,
[ng-click]:active {
background: lightgreen;
}
Which is left from our project migration to the new angular (currently 6.1). How can i achieve the same behavior in it? Is there a way…

Abhishek Subradeep
- 296
- 1
- 5
- 20