Bug Report or Feature Request
When using ng serve --aot with 1.5.0-beta.4 and Angular 5.0.0-rc.1 it will sometimes print an error message in the shell after rebuilding, but the application still works and is refreshed in the browser. I don't have this error with JIT.
Versions.
@angular/cli: 1.5.0-beta.4
node: 6.9.5
os: win32 x64
@angular/animations: 5.0.0-rc.1
@angular/common: 5.0.0-rc.1
@angular/compiler: 5.0.0-rc.1
@angular/core: 5.0.0-rc.1
@angular/http: 5.0.0-rc.1
@angular/platform-browser: 5.0.0-rc.1
@angular/platform-browser-dynamic: 5.0.0-rc.1
@angular/router: 5.0.0-rc.1
@angular/cli: 1.5.0-beta.4
@angular/compiler-cli: 5.0.0-rc.1
@angular/language-service: 5.0.0-rc.1
@angular/platform-server: 5.0.0-rc.1
typescript: 2.4.2
Repro steps.
git clone -b 3.0 https://github.com/ocombe/subnode.git
npm install
npm start
edit src/app/app.component.ts template, save (it should work), edit again, save, you should see the error in your shell (if not, edit again and save again)
The log given by the failure.
webpack: Compiling...
Date: 2017-10-10T09:14:38.659Z
Hash: cac66266cec51e8840c8
Time: 233ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry]
chunk {main} main.bundle.js, main.bundle.js.map (main) 22.2 kB {vendor} [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 217 kB {inline} [initial]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 11.6 kB {inline} [initial]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.37 MB [initial]
webpack: Compiled successfully.
ERROR in Error: Cannot determine the module for class AppComponent in C:/www/subnode/src/app/app.component.ts! Add AppComponent to the NgModule to fix it.
Desired functionality.
It should not print an error message (especially since the app works fine and is recompiled successfully)
Bug Report or Feature Request
When using
ng serve --aotwith 1.5.0-beta.4 and Angular 5.0.0-rc.1 it will sometimes print an error message in the shell after rebuilding, but the application still works and is refreshed in the browser. I don't have this error with JIT.Versions.
Repro steps.
edit src/app/app.component.ts template, save (it should work), edit again, save, you should see the error in your shell (if not, edit again and save again)
The log given by the failure.
webpack: Compiling... Date: 2017-10-10T09:14:38.659Z Hash: cac66266cec51e8840c8 Time: 233ms chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] chunk {main} main.bundle.js, main.bundle.js.map (main) 22.2 kB {vendor} [initial] [rendered] chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 217 kB {inline} [initial] chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 11.6 kB {inline} [initial] chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.37 MB [initial] webpack: Compiled successfully. ERROR in Error: Cannot determine the module for class AppComponent in C:/www/subnode/src/app/app.component.ts! Add AppComponent to the NgModule to fix it.Desired functionality.
It should not print an error message (especially since the app works fine and is recompiled successfully)