Generated files in angular2 AoT compilation

I am using angular-cli to build my app. The line works fine with the option --aot=false

.

I am getting errors with --aot=true

, and in order to investigate them, I would like to look at the files generated by the compilation (in particular the ngFactory files). However, I cannot get the files to persist to disk so that I can look at them ...

Here my tsconfig.json

:

{
  "compilerOptions": {
    "target": "ES5",
    "module": "commonjs",
    "moduleResolution": "node",
    "lib": ["es6", "dom"],
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": true,
    "noImplicitAny": false,
    "outDir": "aot"
  },
  "compileOnSave": false,
  "exclude": ["test.ts"],
  "angularCompilerOptions": {
    "genDir": "aot",
    "debug": true,
    "skipMetadataEmit": true
    }
}

      

When compiling with --target=production

(implied --aot=true

), I get the error:

ERROR in /home/application/aot/app/composition.component.ngfactory.ts (79,9): Supplied parameters do not match any signature of call target.

      

I want to open a file composition.component.ngfactory.ts

to debug it
.

However, when ng build finishes, the file does not exist (as if it had been "cleaned up"). There is no directory aot

. If I create a directory aot

, it remains empty.

Any help is appreciated!

Edit: even creating a new project with ng new

(angular-cli 1.0.0) I can't seem to get the intermediate files in the aot compilation to write to disk.

+3
angular angular-cli


source to share


No one has answered this question yet

Check out similar questions:

8
compile fewer files using angular2 cli
3
How to use platformBrowser instead of platformBrowserDynamic with angular-cli app in maint.ts to load app in aot mode?
2
Angular 2 compiler-cli and less or sass
2
Unknown compiler option 'angularCompilerOptions' in angular assembly 2x forward
2
Compiling JavaScript files in Angular 5 CLI project
1
Angular2 / angular-cli: Strange errors when trying to build with aot
1
Angular compilation 2/4 using AoT error - extendStatics
0
Ng Build in prod mode generates vendor files and a .map file even when using - ng build --base-href # --prod --source-map = false --build-optimizer --aot
0
angular 2 npm error starting duplicate ids
0
Angular jasmine problem in VS Code



All Articles
Loading...
X
Show
Funny
Dev
Pics