Questions tagged [angular14]

For questions regarding Angular specific to version 14. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.

536 questions
1
vote
0 answers

when I added this ng add @angular/pwa and i get error in angular version 14

When I add ng add @angular/pwa package to the angular project, I given an error. Tried to delete node modules and re-install but that did not resolve Failed to generate service worker - Cannot find package '@angular/service-worker'
1
vote
1 answer

Angular 14 flex layout issue

while running serve, i am facing this issue with node modules for flex layout. Class 'MockMediaQueryList' incorrectly implements interface 'MediaQueryList'. Property 'prototype' is missing in type 'MockMediaQueryList' but required in type…
1
vote
0 answers

Removing unused import throws error in Angular 14

I am having a very weird issue. On the top section of imports, I have 2 declared imports that are not being used. More precisely, I have imported them, but did not declared them in the "imports" section of "NgModule". Now the weird issue starts…
1
vote
1 answer

Error migrating app from angular 13 to angular 14. Type 'AbstractControl' is missing the following properties from type 'FormArray'

After migrating an app from Angular 13, to Angular 14, several errors have appeared in the console when I run npm start: First error: error TS2352: Conversion of type 'AbstractControl' to type 'FormArray' may be a mistake because…
Guillermo
  • 19
  • 5
1
vote
1 answer

Angular 14 Scroll Top after navigate to other Route via router-outlet

Hello I just got a fresh issue in Angular 14 with scrolling top, after navigation to other route via . I tried almost everything, below are my attempts: appModule.ts const routerOptions: ExtraOptions = { useHash: false, …
Uland Nimblehoof
  • 862
  • 17
  • 38
1
vote
0 answers

IPC communication between electron 19 and Angular 14

I have to use few electron power events and usb-detection in our app and also communicate these events to the angular side. Earlier with electron version 8, we used the ngx-electron in the angular side and webContents on the electron side to send…
MJ2410
  • 468
  • 1
  • 9
  • 26
1
vote
0 answers

Angular Service Worker disabled in nginx

I am building a Angular14 Progressive Web App (PWA) with service worker by following these guide. The ServiceWorkerModule is importet in app.module.ts with this code: ServiceWorkerModule.register('ngsw-worker.js', { enabled: true, …
1
vote
0 answers

Angular 14 Form Control - Inheriting recursively types from interface

I was wondering if anyone managed use complex interfaces to take advantage of the new typed FormControl and avoid boilerplate code on components. I manage to export a 1-level-only interface with: interface ISimple { a: number; b: string; c:…
1
vote
3 answers

Angular 14 - Routing Module Issue - Invalid configuration of route

I'm having an issue with angular routing after I've upgraded from Angular 13 to Angular 14. I'm getting the following error : *Uncaught Error: Uncaught (in promise): Error: NG04014: Invalid configuration of route 'homepage/'. One of the following…
1
vote
1 answer

Errors in unit tests with ng-bullet after upgrade to Angular 14

After upgrading from Angular 13 to 14 I am having issues with my unit tests, using ng-bullet. Only the first test of each test spec is passing with the remaining tests failing. There is a deprecation warning which ng-bullet seems to violate: "An…
dnyn
  • 51
  • 4
1
vote
0 answers

Angular router.navigate does not work in test after upgrade from Angular 13 to 14

Recently upgraded our library that we use for our apps to angular 14. But now all router.navigate that we have in our tests says: Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'? But seeing how this is a route…
Kamirura
  • 11
  • 2
1
vote
0 answers

ngx-translate is not working with Angular 14

I am using ngx-tanslate in my angular application for internationalization. It works well with angular 13 but not with version 14 and the Error isn't disappear ERROR TypeError: logger is undefined updateToken pie.js:1073 Angular 7 RxJS…
Hamdi
  • 41
  • 2
  • 7
1
vote
0 answers

Refresh issues after upgrade to Angular 14

We recently upgraded from Angular 13.3 to Angular 14. Since then we're having issues when the user refreshes a page. We have an HttpInterceptor which checks that we still have the user information. It looks like the…
1
vote
1 answer

DOMException: Failed to execute 'setAttribute' on 'Element': '[routerLink' is not a valid attribute name

So i have basically started a new angular Project and I'm making the navbar for it and here's the code navbar.component.html:
1
vote
2 answers

I upgraded to Angular 13 and hot-reload stopped working with Nginx

I have an Angular application, and I just updated to Angular 13, but this problem also happens with new Angular 14 apps. I used to serve my apps locally using ng serve --host 0.0.0.0 --disable-host-check but for some reason, now the hot reload…
Danilo Bassi
  • 119
  • 1
  • 1
  • 9