For questions regarding Angular specific to version 16. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.
Questions tagged [angular16]
120 questions
1
vote
1 answer
Why is it problem in typescript, that my class has private properties, and I give it an object with public properties?
I am trying to write a typescript class with private properties, but these properties are set in constructor, the constructor needs only an object, but I always get an error, that "error TS2345: Argument of type 'TranslateResponse' is not assignable…

Maestro
- 43
- 1
- 6
1
vote
0 answers
NgChatModule does not have a module def (ɵmod property) after migration to angular 16
I have migrated angular from 14 to 16 (14 to 15 to 16). I am using ng-chat module.
It was working with angular 15, but now It is showing this on ng serve
Error: NgChatModule does not have a module def (ɵmod property)
at transitiveScopesFor…

Sunil Garg
- 14,608
- 25
- 132
- 189
1
vote
0 answers
TinyMCE and Angular Can't Disable
I'm using TinyMCE with Angular 16.
At some points of my application I don't want users to be able to edit the content of a TinyMCE editor.
I'm using the disabled attribute as per the…

adolfotcar
- 515
- 2
- 8
1
vote
1 answer
Upgraded to Angular 16 and now unable to install Firebase: ERESOLVE error in npm
I am unable to install firebase after i updated Angular v15 to Angular v16.
Expected behavior:
npm install firebase @angular/fire
This work with the previous version of Angular which is Angular 15.
Actual behavior: (Angular 16)
npm ERR! code…

Morish Wilson
- 17
- 5
1
vote
1 answer
Can't set signal from within async piped Observable
When I try setting a signal value from within an Observable that gets piped to async, I get the error:
Error: NG0600: Writing to signals is not allowed in a computed or an
effect by default. Use allowSignalWrites in the
CreateEffectOptions to…

Trevortni
- 688
- 8
- 23
1
vote
0 answers
Alternative to ngx-plyr & plyr
ngx-plyr and plyr are not compiled with angular 16 any more. So far, there has been no update to the package since it has been no longer maintained. Is there any other packages to use (mainly for youtube and audio).
Thanks.

D052057
- 53
- 6
1
vote
1 answer
Where to put a global custom directive in Angular 16 without an AppModule?
In Angular 16, if you are using an application without an AppModule, where should you put a global custom directive that you imported in the AppModule declarations?
For example
I have a directive called hasRole that I used to add to the declarations…

Alexis
- 816
- 2
- 11
- 28
1
vote
1 answer
Why Converting Observable to WritableSignal in Angular 16 throw error of missing properties
I have the following simple code on my component:
import {Component, effect, signal, WritableSignal} from '@angular/core';
import {AppService} from "../app.service";
import {toSignal} from "@angular/core/rxjs-interop";
@Component({
selector:…

anown.dev
- 204
- 2
- 10
1
vote
0 answers
err:NG 8001 mat-paginator is not known element in Angular 16
I am trying to add angular/material into the angular 16 project
For that i have created app.module.ts and mycomponent.module.ts & mycomponent.component.html.
Trying to run the 'ng serve' giving below err-
l:3:9 - error NG8001: 'mat-paginator' is not…

Anushweta
- 21
- 5
0
votes
1 answer
Angular Routing Issue: Not Working for 'http://localhost:4200/#access_token=MytokenValue
I am getting a route from Third Party app post authentication, Route is like below:
http://localhost:4200/#access_token=dynamicTokenValue
I had configured this route as below when I was using Angular 11 and it was working as expected, Post upgrade…

user3300589
- 1
- 2
0
votes
0 answers
types incompatible for chart.js ChartConfiguration<"doughnut">["options"] after upgrading Angular 13 to 16
I'm upgrading Angular from 13 to 16, and after update I'm getting next error:
Error: some.component.ts:15:5 - error TS2322: Type '_DeepPartialObject & ElementChartOptions<"doughnut"> & PluginChartOptions<"doughnut"> &…

Radamant
- 21
- 3
0
votes
0 answers
export 'ANIMATION_MODULE_TYPE' (imported as 'ANIMATION_MODULE_TYPE') was not found in '@angular/platform-browser/animations'
export 'ANIMATION_MODULE_TYPE' (imported as 'ANIMATION_MODULE_TYPE') was not found in '@angular/platform-browser/animations'
how to resolve this error, I updated angular 15 to 16 and I get below error. I tried multiple solutions like cache clean ans…

TamilRoja
- 165
- 1
- 1
- 13
0
votes
1 answer
ngx-order-pipe fails to build in angular 16
I just did import { OrderModule } from 'ngx-order-pipe'; in app.module.ts and added it in imports
imports: [BrowserModule, OrderModule,...],
and when I did ng serve, I am getting below failed to compile error

Hamed Ali Khan
- 1,108
- 3
- 23
- 29
0
votes
1 answer
How to replace deprecated withServerTransition in Angular 16?
In Angular 16, withServerTransition is deprecated. How can I replace it?
enter image description here.
I tried the following code:
imports: [
BrowserModule,
{ provide: APP_ID, useValue: 'serverApp' },
...
],
But I'm getting the following…
0
votes
0 answers
Using jqxWidgets with esbuild
Since my Angular project takes too much time to compile, I wanted to build with ESBUILD So, added this to my angular.json file
"builder": "@angular-devkit/build-angular:browser-esbuild"
But this is throwing an error,
jqxcheckbox.js:8 Uncaught…

Rittika Dev
- 48
- 2
- 6