Description
Bug Report
When I build with "ng build --prod", following error come out
ERROR in this.compiler.compileAll is not a function
Versions.
@angular/cli: 1.1.0
node: 6.9.2
os: linux x64
@angular/common: 4.2.0-rc.2
@angular/compiler: 4.2.0-rc.2
@angular/core: 4.2.0-rc.2
@angular/forms: 4.2.0-rc.2
@angular/http: 4.2.0-rc.2
@angular/platform-browser: 4.2.0-rc.2
@angular/platform-browser-dynamic: 4.2.0-rc.2
@angular/router: 4.2.0-rc.2
@angular/cli: 1.1.0
@angular/compiler-cli: 4.1.3
Repro steps.
(1) ng new
(2) adjust package json
(3) ng build --prod
error happen
the repository is here
https://github.com/morninng/issue_angularcli
The log given by the failure.
following error comes out
ERROR in this.compiler.compileAll is not a function
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/home/morninng/development/Angular2/mixidea_cowork/src'
@ ./src/main.ts 4:0-74
@ multi ./src/main.ts
Desired functionality.
build should be succeeded
Mention any other details that might be useful.
ng build --dev or ng build works successfully