-
Notifications
You must be signed in to change notification settings - Fork 25.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiler-cli: Component-level CSS causes error #11445
Comments
I did a bit of testing, and I found that if the file name contains I'll continue investigating on this issue. |
what file ? do you have a mean to test on linux / mac ? |
I don't have a Mac, but I did a test on Ubuntu which gave the same result. The file I mentioned is |
You are renaming a generated file ??? |
I found the issue. It's due to erroneous configuration of webpack in angular-cli. Fixed in angular/angular-cli#2069 |
Thanks for reporting the solution here |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
Current behavior
Note: I'm not sure if this issue is an issue of
@angular/compiler-cli
orangular-cli
After compiling a style-embedded component, the compiler generates a
.css.shim.ts
file. But this file causes the following error while building:This is the content of
app.component.css.shim.ts
:Expected behavior
.css.shim.ts
files should not cause errors during build.Reproduction of the problem
angular-cli
from the master branch - as the time of writing, I use angular/angular-cli@e20af21 (The latest release still on RC5)ng new
@angular/compiler-cli
and its dependency,@angular/platform-server
./node_modules/.bin/ngc -p ./src
ng build
orng serve
Please tell us about your environment:
Tested on Windows 10 and Ubuntu 14.04 running NodeJS 6.5.0
node --version
= 6.5.0The text was updated successfully, but these errors were encountered: