Questions tagged [angular-compiler-cli]
71 questions
0
votes
1 answer
Angular-compiler outputs script that contain undefined this
I'm working on a small npm package for Angular, which is basically one directive that enables dragging/moving on the element you put it on. I did manage to publish it yesterday (even thought it took a while as it was the first time I published…

Dawid Zbiński
- 5,521
- 8
- 43
- 70
0
votes
0 answers
Angular2 compiler turns module 'x' into 'x/index'
I'm having a hard time to understand why @angular compiler changes my modules names:
directive.ts
import isNil from 'lodash-es/isNil';
...
@Directive({
selector: '[aColor]',
})
export class AColorDirective { }
tsconfig.aot.json
{
…

PRAISER
- 793
- 7
- 15
0
votes
1 answer
AOT - loading error app.module.ngfactory is not found
I'm trying to integrate AOT in my angular project so I followed Angular.io to do that, the AOT folder and files are generated successfully with no errors after I run the following command :
"node_modules/.bin/ngc" -p tsconfig-aot.json
but when I…

Mtaraby
- 167
- 1
- 13
0
votes
1 answer
Dynamically loading a component in Angular 2 requires Traceur?
My code should load a component based on a customer name and a setting, both received as strings from the backend.
I tried using the Compiler to compile the module and then get the component factory, however when trying to compile, angular seems to…

Inbar Shani
- 75
- 2
- 8
0
votes
1 answer
AOT Compilation error in angular library
I Made a library for Angular 2 but I am stuck in this issue.
I am getting this error:
ERROR in C:/xampp/htdocs/github/jw-bootstrap-switch-ng2/switch-project/src/$$_gendir/node_modules/jw-bootstrap-switch-ng2/src/directive.ngfactory.ts (246,59):…

Julio Guerra
- 390
- 3
- 14
0
votes
1 answer
installing @angular/compiler-cli, @angular/tsc-wrapped breaks karma-jasmine test
Running karma-jasmine test trowing an error, if @angular/compiler-cli installed. If I will not install @angular/compiler-cli test are working fine, but I need compiler-cli as I need to use ng-xi18n. If I remove @angular/tsc-wrapped, I can run tests,…

Bahodir
- 539
- 1
- 9
- 29
0
votes
1 answer
Angular 2 AoT compile causes application issues and works fine in JiT
I've followed the Angular 2 example from:
https://angular.io/docs/ts/latest/cookbook/aot-compiler.html
After compiling the application using ngc AoT the routing doesn't work, it just stays on the same page and nothing happens.
Since the application…

Loves2Develop
- 774
- 1
- 8
- 29
0
votes
1 answer
Ionic 2: ngc compiling fails (Metadata emit requires the sourceFiles are passed to WriteFileCallback)
I'm trying to compile my ionic 2 rc app using ngc with typescript@next:
[ben@ben app2] $ ./node_modules/.bin/ngc -p tsconfig.json
Error: Metadata emit requires the sourceFiles are passed to WriteFileCallback. Update to TypeScript ^1.9.0-dev
at…

highwaychile
- 755
- 1
- 6
- 18
-1
votes
1 answer
How know if the Angular compiled /dist match with the source code in /src?
I have a compiled 'dist' folder and I want to know if it matches with the source code or is a different version. How can I do it?

Pedro Rout
- 3
- 2
-1
votes
3 answers
The "@angular/compiler-cli" package was not properly installed. Error: Cannot find module '@angular/compiler-cli'
When trying npm start or ng serve it shows the error like this :
The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli'
Error: The "@angular/compiler-cli" package was not properly…

Jishnu Sree
- 1
- 1
-2
votes
1 answer
Angular 8 compile Issue
I have a problem compiling my Angular 8 application:
chunk {main} main.js, main.js.map (main) 11.7 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 141 kB [initial] [rendered]
chunk {runtime} runtime.js,…

Nishit
- 69
- 1
- 7