For questions regarding Angular specific to version 14. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.
Questions tagged [angular14]
536 questions
2
votes
0 answers
ngtools module buildable after migration to Angular 14
I have upgraded my Angular 12 project to Angular 13 without any problems but then when I wanted to pass from angular 13 to Angular 14 I encountered problems with @ngtools. Complete log here:
./src/main.ts - Error: Module build failed (from…

LaCodeM
- 645
- 7
- 23
2
votes
1 answer
Error when trying to load a "standalone" component from a module
I want to inject new standalone component CrashReportsComponent into my project. But I get an error when I try to connect a component from module-routing that the component type is not like NgModule
NgModule 'CrashReportsComponent' is not a subtype…

Anton Kazakov
- 23
- 1
- 3
2
votes
1 answer
convert the > expression to 'unknown' first while extending FormGroup
A custom class derived from FormGroup in Angular 14:
export interface MyForm extends FormGroup {
isSaving: boolean;
value: Required;
controls: { [key in keyof Required]: FormControl };
setValue(
value: Required,
…

socialsnobbish
- 79
- 1
- 3
2
votes
1 answer
Angular 14 - Polyfills don't work for older browsers
I have an Angular 14 app built with all the default settings of a new project. This is my .browserlistrc. The generated index.html doesn't load on Chrome 74 or earlier.
Chrome > 50
Android > 50
last 1 Firefox version
last 2 Edge major versions
last…

adir
- 21
- 3
2
votes
1 answer
How to use Standalone Components, Pipes, or Directives in feature modules
I updated my angular project to angular 14. Now I want to have some standalone components, pipes, or directives.
I have a featured module named ProductModule and want to use a standalone pipe called uppercase in this module.
// structure
---Product
…

Abolfazl Roshanzamir
- 12,730
- 5
- 63
- 79
2
votes
0 answers
Angular 14's FormGroup.get() is always possibly null. How do I make it non-nullable?
Angular 14 introduced typed forms, which are amazing, but I'm struggling with a specific part of it: FormGroup.get(name) now appears to always return AbstractControl | null. How can I get it to be non-nullable?
Let's take a look at this…

doppelgreener
- 4,809
- 10
- 46
- 63
2
votes
0 answers
Global @angular/cli version is 14 but running "ng new" is creating angular 12 project
My global @angular/cli is 14.
Running ng version is returning:
Angular CLI: 14.2.1
Node: 16.17.0
Package Manager: npm 8.15.0
OS: darwin x64
But when I create a new ng project using ng new my-project it creates it in Angular 12 (all @angular…

Riri
- 23
- 3
2
votes
0 answers
Primeng 13.x tree node not selecting the parent when a child node is selected
I am using Primeng v13.4.1
I am using p-tree component to display hierarchy options with checkbox.
when a child node is selected the parent node is not selected.
this issue happens only when i add scrollHeight, virtualScroll and…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
2
votes
0 answers
Error [ERR_REQUIRE_ESM]: require() of ES (Angular 14/Angular Universal/Firebase Hosting&Cloud Functions)
I am trying to implement Server Side Rendering using Angular 14 with Angular Universal and Firebase Cloud Functions. I used this tutorial:
https://gist.github.com/debojyoti/d75a517f77d8e5881d87553f1e493614
as a guide. I followed all the necessary…

chadoulis
- 383
- 1
- 3
- 15
2
votes
0 answers
Angular 14: Typed form with generic type not working
I want to build a form which can have multiple filters. Each filter consists of a fieldName, operator and a value. The type of the value is related to the fieldName.
This is my filterModel:
export type FilterModel = { [K in keyof T]: {
…

Julia
- 137
- 3
- 13
2
votes
1 answer
how to show dynamic viewmodel in angular
In an Angular project
I want to create a component that can display any viewmodel.
I want to create a dynamic report that shows any viewmodel we give it
But I do not know how to do this
How to dynamically get property value from model by string…

behinafzar bahrami
- 53
- 7
2
votes
0 answers
Proxy not created in Angular 14
{
"/family-book-base/*": {
"target": "http://localhost:8080",
"secure": false,
"logLevel": "debug"
}
}
When I start my angular application using ng serve --proxy-config proxy.conf.json, it starts properly, but the…

Prabagaran Praba
- 31
- 3
1
vote
0 answers
What used to work in Angular no longer is in 14.2.0
I generate a new component and I get this:
Unable to resolve signature of class decorator when called as an expression.
Argument of type 'ClassDecoratorContext' is not assignable to parameter of type 'string |…

Peter The Angular Dude
- 1,112
- 5
- 26
- 53
1
vote
0 answers
cross feature selectors in new ngrx14+
i'm trying to use the new syntax createFeature() for my new angular project
but there is this one thing stopping me, i don't know how to implement cross feature selectors using the new api
i'm reading from this…

Faz Fazzi
- 13
- 4
1
vote
0 answers
How to output schematics questions from js script
I'm creating a script that generates an Angular workspace using the schematics feature.
My schematics has a required property:
"$id": "MySchematics",
"$schema": "http://json-schema.org/schema",
"description": "Create a workspace",
"properties": {
…

E.Tiake
- 166
- 1
- 13