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


source to share





All Articles