Questions tagged [angular-upgrade]

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.

213 questions
1
vote
1 answer

Upgrade to Nx13 missing styles

After upgrading to Nx13 (angular 13) from 12, my library lost all styles, meaning when I run the storybook, it seems like the scss file are not imported with the components themself. when I try to pack the lib and install it in my main app, the scss…
1
vote
0 answers

Angular 12 upgrade: [Violation] 'load' handler took 238ms

I have upgraded the version of the angular application to version 12 using the below. npx @angular/cli@12 update @angular/core@12 @angular/cli@12 npx @angular/cli@12 update @angular/material@12 ng update I am using leaflet 1.7.1 for interactive…
Vaibhav D
  • 605
  • 9
  • 12
1
vote
1 answer

Receiving peer @angular/cli@">= 12.0.0 < 13.0.0" from @angular-eslint/schematics@12.6.1 when upgrading to Angular 13

When upgrading to Angular 13, I received "peer @angular/cli@">= 12.0.0 < 13.0.0" from @angular-eslint/schematics@12.6.1" error. After investigation we found that upgrading @angular-eslint/* to next packages will make the upgrade work.…
1
vote
2 answers

Upgrading angular from 9 to 12

I am trying to upgrade our angular application from 9 to 12 but i understnad we have to do it one release at a time so i am still stuck in step 1 from 9 to 10 I run ng update @angular/core@10 @angular/cli@10 --allow-dirty -- force and then ng update…
Miroo
  • 795
  • 3
  • 13
  • 35
1
vote
0 answers

Factory does not return value from provider after Angular update

In app.module.ts has the following provider: { provide: LOCALE_ID, useFactory: (translate: TranslateService) => translate.currentLang, deps: [TranslateService] } I have updated angular version from 8.2 (iteratively to 12). Everything…
1
vote
1 answer

Angular upgrade from version 8 to 11 made fonts blurred

after upgrading Angular from version 8 to 11, fonts are looking different, they are blurred. Any ideas what can I do/check to make them look the same as they were before? Any help would be appreciated. When I run app locally, it looks better than on…
blackRose
  • 180
  • 1
  • 9
1
vote
1 answer

Can't bind to 'data-link' since it isn't a known property of 'td'

Actually I was doing angular migration from angularjs to angular 10. While doing the upgrade we are facing an issue with this data-link binding. keep getting the error Can't bind to 'data-link' since it isn't a known property of 'td' Actually they…
sujith karivelil
  • 28,671
  • 6
  • 55
  • 88
1
vote
0 answers

upgrade local angular cli version to global

When running ng serve I get this warning Your global Angular CLI version (12.0.5) is greater than your local version (1.5.0). The local Angular CLI version is used. In order to upgrade the local Cli I've tried some steps but every time ng serve…
sirH
  • 83
  • 5
1
vote
1 answer

AngularJs upgrade Unknown Provider after bootstrapping change

I am attempting to upgrade a large angular.js app (1.5.9) to the latest version of Angular. I am in the process of turning the app into a hybrid AngularJs/Angular app and have reached this step in the…
DeejC
  • 117
  • 13
1
vote
2 answers

Getting Error - Migration failed: Package "@angular/core" was not found on the registry

Trying to update Angular 9 to Angular 10, getting below error - × Migration failed: Package "@angular/core" was not found on the registry. Cannot continue as this may be an error. See "C:.........\Local\Temp\ng-j24yaY\angular-errors.log" for further…
iASD
  • 29
  • 1
  • 5
1
vote
1 answer

(Angular upgrade) AngularJS component's binding should be undefined

Currently trying to figure out why this happens, but if I have an optionnal function binding (&?) on a NG1 component then NG2 will put a EventEmitter on it :/ This is not what I expect and breaks some code we do when these are normally…
1
vote
1 answer

Convert $window.UserSettings array from angularjs component to angular 8 component

I have an angularjs 1.7 component which I need to upgrade to angular 8 component. It has an external script, which I cannot modify. That script inserts an iframe into the div and it expects some settings from the component to customize the…
Daina Hodges
  • 823
  • 3
  • 12
  • 37
1
vote
1 answer

Angular 8 to 9 upgrade issues due to IVY

I recently upgraded my Angular 8 application to Angular 9 and it all went smooth, but upon running the application I keep getting this error. Uncaught TypeError: Cannot set property ɵfac of function ngf(element) { this.element =…
1
vote
0 answers

Angular 9 upgrade CompilerFactory errors

I upgrade angular from 8.2.2 to 9.1.8 according to the official upgrade Angular CLI: 9.1.6 Node: 12.16.1 OS: win32 x64 Angular: 9.1.8 ... animations, common, compiler, compiler-cli, core, forms ... language-service, platform-browser,…
AshH
  • 39
  • 7
1
vote
1 answer

Animation content disappearing early in downgraded Angular component

I have a hybrid Angular/AngularJS application. To run this application without performance issues I run it as an AngularJS application using Angular's "downgradeModule". I also have the need to use a scroll cdk directive that lives in Angular 8…