Questions tagged [angular-compiler-cli]
71 questions
2
votes
1 answer
AOT compiler compiles ngfactory files
I'm new to AOT compiler.
I compile all of the files to a 'compiled' directory using this option:
"angularCompilerOptions": {
"genDir": "compiled",
"skipMetadataEmit" : true
}
But when I run 'ngc' it tries to also compile the newly created…

Loves2Develop
- 774
- 1
- 8
- 29
2
votes
1 answer
Do the ngfactory files themselves have to be compiled in Angular 2 AOT compilation?
Whenever I compile an Angular 2 application with ngc, it creates the .ngfactory.ts files for every component and then compiles all the typescript to javascript.
However, when I run ´ngc´ the first time, it creates the ngfactory files, but compiles…

Tuupertunut
- 741
- 7
- 9
2
votes
1 answer
Angular 2 compiler-cli and less or sass
I am using webpack with angular 2 and got sass working with it. My next step is to get AOT working. I am now stuck because ngc fails when it gets to my scss files as it can't find the imports.
The message is "Resource file not found..." and…

Jason
- 1,316
- 13
- 25
2
votes
0 answers
angular-compiler-cli not working?
I'm trying to use the Angular Template Compiler just to investigate it, I know it's in early stages but the documentation for RC5 is mentioning it already. I created a small "hello, world" project and I can run ngc, but it never produces the…

Jason Goemaat
- 28,692
- 15
- 86
- 113
1
vote
0 answers
Properly preprocess Angular Components and Templates
We just recently ported an Angular Project from angular 1.5 to 11.
A part of the code was conditionally compiled with gulp-preprocess and conditional statements in code and templates (different parts were thrown out for special…

Jenson
- 625
- 3
- 16
1
vote
0 answers
Angular 9: failed to build an angular library in v9.1.0 which dependes on other angular library
I'm upgrading my Angular library to version 9, in my project I use Angular v9.1.0.
And my library relies on another internal Angular library. When I try to build my library, II got the following…

Chris Bao
- 2,418
- 8
- 35
- 62
1
vote
1 answer
Angular - How to import a scss variable file using ngc -w?
I've got a FooComponent that has a .scss file attached to it, this works.
However, when trying to import a variable file from an external lib residing in node_modules, it throws an error.
In my .scss file I do:
@import…

Chrillewoodz
- 27,055
- 21
- 92
- 175
1
vote
2 answers
How to package a lazy loaded module following the Angular Package Format specification?
I am packaging my angular module using ngc and rollup following the Angular Package Format 4.0 specification.
I'm able to lazy load it using the angular cli using a wrapper module.
import { LibraryModule } from 'my-library';
import { NgModule } from…

Khoi Pham
- 189
- 1
- 10
1
vote
0 answers
angular/compiler-cli package was not properly installed
I am new in angular 2 and i have downloaded Angular2 project from server and try to run in my local environment after installing npm but it is showing the below error:
The "@angular/compiler-cli" package was not properly installed.…

Sumit Rawat
- 151
- 1
- 2
- 4
1
vote
0 answers
SystemJS Error with Angular AOT: Uncaught (in promise): TypeError: ctor is not a constructor
I'm using Angular 4.4.1 + SystemJS 0.20.19 + NgBootstrap 1.0.0-beta.5 in an app. The app works in Angular JIT mode by following this instructions and having the following SystemJS configuration
meta: {
"./*": {
"esModule": true
…

wonderful world
- 10,969
- 20
- 97
- 194
1
vote
0 answers
Angular 2/4 compile using AoT error - extendStatics
I have an application which I'm trying to compile using AoT. When I build the application I'm getting the following error:
C:\test\node_modules\@angular\compiler-cli\src\diagnostics\expression_diagnostics.js:14
extendStatics(d, b);
^ TypeError:…

Daniel Grima
- 2,765
- 7
- 34
- 58
1
vote
0 answers
Angular 4 startup performance
We have Angular 4 project compiled aot and bundled with rollup and without lazy loading. It takes about 3 seconds for scripting during startup. I need to reduce this time. I found examples of Angular 4 app with startup time less then 1 sec:…

IAfanasov
- 4,775
- 3
- 27
- 42
1
vote
1 answer
Using my module in angular-cli: Error encountered resolving symbol values statically
I know I'm not the only one having questions regarding this term. But the angular guys have about 23 questions regarding this term. I tried a lot of different things. One is important: I tried it the same way they do it for @angular/http (exporting…

iRaS
- 1,958
- 1
- 16
- 29
1
vote
1 answer
Angular AOT compilation error : Internal state: StaticSymbols in summaries can't have members
We are trying to perform ahead of time ( aot ) compilation for our angular 2 project and we are running into a error :
Error: Internal state: StaticSymbols in summaries can't have members!…

bhavya_w
- 9,186
- 9
- 29
- 38
1
vote
1 answer
Error upgrading Rollup build to latest @angular/2.4.8
I'm running into an error with Rollup after compiling my Angular 2 app with ngc. Has anyone else overcome this issue?
Error: '$$observable' is not exported by …

steveblue
- 455
- 4
- 19