-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@angular/cli): ensure stylesheet relative tilde path conversion #9077
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
Conversation
1f942b6
to
bdc9ffb
Compare
e1773a6
to
6449e06
Compare
I tried it by updating the file in the node_modules/@angular/cli/models/webpack-configs/styles.js but I got this weird error (same as before the update but the path changed to relative instead of absolute): Module not found: Error: Can't resolve './....node_modules☼ont-awesome☼onts☼ontawesome-webfont.eot' in 'c:\Users<user_name>\Desktop<project>\src' it seems everything after the / is either missing or is suing some kind of escape sequence like "/f" in "/fontawesome" is displaying as "☼" same thing with ioic icons: Module not found: Error: Can't resolve './....node_modulesionic-angular☼ontsnoto-sans-bold.woff' in 'c:\Users<user_name>\Desktop<project>\src' any ideas? |
Ensure that, on Windows, the path doesn't contain back slashes to be PostCSS friendly :) Following angular#8791 Closes angular#9077 angular#9061 angular#9080
Ensure that, on Windows, the path doesn't contain back slashes to be PostCSS friendly :) Following angular#8791 Closes angular#9077 angular#9061 angular#9080
6449e06
to
699044b
Compare
699044b
to
3786b45
Compare
This seems to somehow have broken Material2 styles.css imports for me:
Worked until latest CLI release on my Ubuntu workstation. Yes, the file is present:
For anyone else running into the same: A workaround, at least for me, is simply to include the CSS directly in the |
@filipesilva Thanks. I also found the bug report (#9185), which has other nice workarounds. @clydin gave the simplest one: Just nuke the tilde. :) |
This is the easy way to get rid of "ERROR in ./node_modules/css-loader?{"sourceMap":false,"import":false}!." |
This is the easy way to get rid of "ERROR in ./node_modules/css-loader?{"sourceMap":false,"import":false}!." |
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. |
Fixes #9061