Skip to content

Nested files don't get passed '~' option #108

@richardbutler

Description

@richardbutler

If I have a library in node_modules, which is imported by a partial, then imported again, I get ERROR in ... File to import not found or unreadable.

Given node_modules/somelib/colours.scss exists, this doesn't work:

sass/core/_colours.scss:

@import '~somelib/colours.scss';

src/components/Thing.scss:

@import 'core/colours';

src/components/Thing.jsx:

require('./Thing.scss');

However, this works:

src/components/Thing.scss:

@import '~somelib/colours.scss';

src/components/Thing.jsx:

require('./Thing.scss');

Note I'm running on Windows 7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions