-
-
Notifications
You must be signed in to change notification settings - Fork 27k
CSS dependency with private module @import fails with #1290
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
Comments
Tagging because we need to report this upstream to Webpack (if the issue is still reproducing). |
This is not a bug with scoped packages. @import 'my-package/something.css'; The reason is because Webpack doesn’t know this CSS file “understands” module system, and so it assumes that The workaround is simple: put @import '~my-package/something.css'; This works with scoped packages too: @import '~@my-user/my-package/something.css'; I hope this helps! |
how can i deploy my react app to heroku with private modules? |
Can you reproduce the problem with latest npm?
Yes
Description
CSS dependency with private module @import fails with error
it produces a lot of these errors for many of the files in
@privaterepo/somepackage
an example of how these files look is:
Expected behavior
It should build
Actual behavior
Fails to build with the above error
Environment
Run these commands in the project folder and fill in their results:
node -v
: 6.9.0npm -v
: 4.0.5Then, specify:
The text was updated successfully, but these errors were encountered: