Dzmitry Paulouski
Dzmitry Paulouski

Reputation: 43

Angular 2 AOT compilation requires component name

I have an issue with AOT compilation. When I run a build task it asks me for some new component name. It will be an issue for CI. Here is an Example.

My tsconfig.json file:

{
  "compilerOptions": {
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [ "es6", "dom" ],
    "mapRoot": "./",
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "target": "es5",
    "typeRoots": [
      "./node_modules/@types"
    ],
    "types": [
      "node"
    ],
    "noUnusedLocals": true,
    "pretty": true,
    "removeComments": true
  },
  "angularCompilerOptions": {
    "genDir": ".",
    "entryModule": "src/app/app.module#AppModule"
  }
}

Could someone please advise how to avoid this name input?`

Upvotes: 0

Views: 304

Answers (1)

Dzmitry Paulouski
Dzmitry Paulouski

Reputation: 43

Actually, it wasn't an issue! Be careful because there is a package with name "ngc" in npm so it has the same name as Angular Compiler CLI.

Upvotes: 1

Related Questions