Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.5.0-beta.3
node: 6.11.0
os: win32 x64
@angular/animations: 5.0.0-rc.0
@angular/cdk: 2.0.0-beta.11
@angular/common: 5.0.0-rc.0
@angular/compiler: 5.0.0-rc.0
@angular/core: 5.0.0-rc.0
@angular/forms: 5.0.0-rc.0
@angular/http: 5.0.0-rc.0
@angular/material: 2.0.0-beta.11
@angular/platform-browser: 5.0.0-rc.0
@angular/platform-browser-dynamic: 5.0.0-rc.0
@angular/router: 5.0.0-rc.0
@angular/cli: 1.5.0-beta.3
@angular/compiler-cli: 5.0.0-rc.0
@angular/language-service: 5.0.0-rc.0
typescript: 2.5.3
Repro steps.
Upgraded cli from 1.4.4 to 1.5.0-beta.3 then Production builds started to error on bootstrap with html/css 404s i.e. ng serve --prod
ng serve development mode works fine.
I couldn't reproduce it with a new cli project, so there must be some different configuration in my existing project (which I'm still trying to find!), but 1.5.0-beta.0 seemed to have the same error at bootstrap.
Downgrading back to 1.4.4 allows me to use AOT builds again.
Funnily enough, if I manually copy all *.component.html and *.component.css to the /dist directory, my build will work with 1.5.0-betas.
I thought webpack was supposed to "pack" all the templates into javascript ? PS I'm not using any lazy loading
The log given by the failure.

Desired functionality.
Bootstrap with AOT production builds in 1.5.0-betas as it does with 1.4.4
Mention any other details that might be useful.
AOT works with 1.4.4 but not 1.5.0-betas
Manually copying templates to dist directory enables AOT to work (but with obviously more HTTP requests to fetch the individual component html and css)
Can't reproduce on fresh ng new
Still trying to figure out difference between my project and fresh ng new (closed source project, sorry can't share link)
I've tried deleting node_modules and reinstalling
Using yarn package manager v1.1.0
Bug Report or Feature Request (mark with an
x)Versions.
@angular/cli: 1.5.0-beta.3
node: 6.11.0
os: win32 x64
@angular/animations: 5.0.0-rc.0
@angular/cdk: 2.0.0-beta.11
@angular/common: 5.0.0-rc.0
@angular/compiler: 5.0.0-rc.0
@angular/core: 5.0.0-rc.0
@angular/forms: 5.0.0-rc.0
@angular/http: 5.0.0-rc.0
@angular/material: 2.0.0-beta.11
@angular/platform-browser: 5.0.0-rc.0
@angular/platform-browser-dynamic: 5.0.0-rc.0
@angular/router: 5.0.0-rc.0
@angular/cli: 1.5.0-beta.3
@angular/compiler-cli: 5.0.0-rc.0
@angular/language-service: 5.0.0-rc.0
typescript: 2.5.3
Repro steps.
Upgraded cli from 1.4.4 to 1.5.0-beta.3 then Production builds started to error on bootstrap with html/css 404s i.e.
ng serve --prodng servedevelopment mode works fine.I couldn't reproduce it with a new cli project, so there must be some different configuration in my existing project (which I'm still trying to find!), but 1.5.0-beta.0 seemed to have the same error at bootstrap.
Downgrading back to 1.4.4 allows me to use AOT builds again.
Funnily enough, if I manually copy all
*.component.htmland*.component.cssto the/distdirectory, my build will work with 1.5.0-betas.I thought webpack was supposed to "pack" all the templates into javascript ? PS I'm not using any lazy loading
The log given by the failure.
Desired functionality.
Bootstrap with AOT production builds in 1.5.0-betas as it does with 1.4.4
Mention any other details that might be useful.
AOT works with 1.4.4 but not 1.5.0-betas
Manually copying templates to dist directory enables AOT to work (but with obviously more HTTP requests to fetch the individual component html and css)
Can't reproduce on fresh ng new
Still trying to figure out difference between my project and fresh ng new (closed source project, sorry can't share link)
I've tried deleting
node_modulesand reinstallingUsing
yarnpackage manager v1.1.0