Closed
Description
Can you reproduce the problem with latest npm?
Yes
Description
CSS dependency with private module @import fails with error
Error in ./~/@privaterepo/somepackage/lib/PropertyPicker/PropertyPicker.css
Module not found: ./@privaterepo/somepackage-two/css/variables/dimension in /Users/rogan/projects/create-react-app-folder/node_modules/@priaterepo/somepackage/lib/PropertyPicker
it produces a lot of these errors for many of the files in @privaterepo/somepackage
an example of how these files look is:
@import '@privaterepo/somepackage-two/css/variables/color';
@import '@privaterepo/somepackage-two/css/variables/dimension';
@import './DateInput.css';
.somecss {
border: solid 1px var(--color-pumiceGray--darker);
}
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.5
Then, specify:
- Operating system: MacOS Sierra
- Browser and version: Chrome 55