Skip to content

CompileError: Sass file in a subfolder could not found #613

Closed

Description

@boriskaiser

If I import a new Sass file in a subfolder, it will not be found.

I noticed that the path is wrong:

image

The correct path is not /src/styles/variables, but /src/styles/module/variables.

I use parcel template.

Link to CodeSandbox: https://codesandbox.io/s/4l28y68ow

Is there a solution for this?

Thanks in advance,
Boris

Activity

  1. CompuIves commented on Mar 2, 2018

    @CompuIves
    Contributor

    Hey! Thanks for the detailed report and reproduction sandbox. I'm now looking into a fix.

  2. CompuIves commented on Mar 2, 2018

    @CompuIves
    Contributor

    Should be live in ~15 min!

  3. boriskaiser commented on Mar 2, 2018

    @boriskaiser
    Author

    Unfortunately, this still does not work:

    image

  4. CompuIves commented on Mar 2, 2018

    @CompuIves
    Contributor

    Hmm, what happens if you refresh? Our service worker could still have the old cached version. The version number in the bottom right should say PROD-1520015569.

  5. boriskaiser commented on Mar 2, 2018

    @boriskaiser
    Author

    Yo, I had a cached version — Now it works:

    image


    But 😊 ...

    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.

    Is this part of this issue or should I create a new one?

  6. CompuIves commented on Mar 2, 2018

    @CompuIves
    Contributor
  7. CompuIves commented on Mar 2, 2018

    @CompuIves
    Contributor
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