Skip to content

Resolving @import to scoped npm packages #424

@segfaultmedaddy

Description

@segfaultmedaddy

As continue of issue #382 there is a problem in sass-loader or webpack with resolving .scss files in
scoped npm packages (node_modules/@org/pkg) if there no explicit importing path, sass-loader will
not recognize package in node_modules and throw File to import not found or unreadable: ... error. Also, to note there is no error when using simply css-loader to resolve .css files.
See example: https://github.com/vanesyan/webpack-npm-scope-css-import-issue

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