Skip to content

CSS dependency with private module @import fails with #1290

Closed
@rogy

Description

@rogy

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:

  1. node -v: 6.9.0
  2. npm -v: 4.0.5

Then, specify:

  1. Operating system: MacOS Sierra
  2. Browser and version: Chrome 55

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions