Skip to main content
1 vote
1 answer
76 views

Internal Error while using angular compiler to parse html

I am creating a angular shcematics project to propose suggestions to my angular project. I am trying to use the built in angular compiler to parse the code because libraries such as parse5 and ...
Jonathan's user avatar
  • 461
5 votes
2 answers
2k views

How to get rid of "Imports array contains unused imports(-998113)"

Ever since I've upgraded my app to the latest version of Angular (18.2.0), I'm getting this warning message in many of the components: Imports array contains unused imports(-998113) Now, I ...
TheCuBeMan's user avatar
  • 2,503
0 votes
0 answers
43 views

Disable template checks 'is not a known element'

I am trying to disable template checks in Angular 14. I have a large project and am refactoring into modules. As I am doing this I am getting a ton of template errors for components that I have not ...
lostintranslation's user avatar
1 vote
1 answer
67 views

Exclude or include angular components for strictTemplates check

I have a legacy code that has disabled strictTemplates in angularCompilerOptions. I want to turn on strictTemplates for some components to refactor components one after another. I tried to create ...
Mahyar's user avatar
  • 71
0 votes
2 answers
905 views

Angular 18 -- Error: The injectable 'Http2' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available

I am upgrading an old project of mine from Angular ~7 to ~18. After fixing ALL the TS warnings and errors, the project compiles successfully. However, when I run npm start and hit localhost:4200 I am ...
xinu3's user avatar
  • 13
0 votes
2 answers
390 views

Preprocessing Angular templates before compiling

I'm trying to plug into the compile step and modify the AST to amend a data attribute to DOM elements (HTML templates). This is to inject information into the DOM at compile time without modifying the ...
Kiet Ho's user avatar
1 vote
0 answers
373 views

Error: The injectable 'PlatformLoaction' needs to be compiled using the JIT compiler, but '@angular/compiler's is not available

I was updating my Angular version from 10 to 15 and encountered an error while running the application.. Ideally, the Library is processed using the Angular Linker to become fully AOT compiled. ...
Rajat Bhatti's user avatar
0 votes
2 answers
2k views

error TS2322: Type 'string | string[]' is not assignable to type 'string'

I have an @Input() property with the data type string | string[]. Before upgrading to Angular 16, it was working fine, but after I upgraded to Angular 16, I started getting this error. I'm not sure ...
awais nawaz's user avatar
0 votes
0 answers
101 views

Is a way to debug angular aot compiler?

Windows 11, Angular branch 17.3.x. I build angular from official repository. It is ok. Then I try to debug angular aot compiler (not application). I follow instructions https://github.com/angular/...
Satabol's user avatar
  • 98
2 votes
1 answer
940 views

Requested module '@angular/compiler' does not provide an export named 'TmplAstBoundDeferredTrigger'

I have an angular 16.1.0 project and it was working fine, after restarting vscode and running ng serve command i have this error even i deleted node_modules folder, cleared cache then reinstalled ...
Asmaa Rashad's user avatar
0 votes
1 answer
872 views

Angular compiler-cli error: Namespace 'ts' has no exported member 'ResolutionMode'

I am developing a web application with Angular 16 in Webstorm. The web application is currently pre-release and only has a small portion of minimum functionality completed. I was editing with ng ...
CodeWarrior's user avatar
  • 7,468
2 votes
0 answers
471 views

How to create angular @Input/@Output wrapper

I have been experimenting with Angular 16, particularly with zoneless and signals, and I've accomplished some interesting stuff. When working with component communication using @Input(), I found ...
Jeshua Hinostroza's user avatar
-1 votes
1 answer
205 views

Compile Module dynamically with providers in Angular 14

I need to create a module with a composite of submodules that represents minimum required imports for my package to work. This composite of modules depends on external config, and i want to compile ...
Noel Álvarez's user avatar
0 votes
0 answers
58 views

My angular compiler is creating a ghost extra css rule

It appears the angular compiler is generating me a ghost rule for a scss selector '.features-icon-box h3' is generating .features-icon-box h3,.features-icon-box.h3 I have a regular website using ...
Ernesto Alfredo's user avatar
0 votes
1 answer
37 views

Does the Angular Compiler optimize string expressions?

I have the following code snippet: "foo".length > 0 ? true : false; Does the Angular compiler replace it just with true? tsc does not do; I tried it out.
daflodedeing's user avatar

15 30 50 per page
1
2 3 4 5
7