Skip to content

CompileError: Sass file inside an NPM package could not found  #618

Closed

Description

@boriskaiser

After #613 I just tested the same thing with an NPM package.

And the path is unfortunately not correct:

image

When I import a node_modules package with a tilde ~, it works fine.

But if something is imported inside the package — like this one at srbreakpoints — the path is wrong.

The correct path is not /src/~/@superreal/srbreakpoints/src/styles/core/helpers, but /node_modules/@superreal/srbreakpoints/src/styles/core/helpers.

I use parcel template.

Link to CodeSandbox: https://codesandbox.io/s/xzr839y4pw

Thanks in advance,
Boris

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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