Skip to content

Can't @use or @forward a file #90

Open
@arch-daemone

Description

@arch-daemone

Describe the bug
Despite using the latest version of sass, which implements the new module system, scss-bundle won't let me use @use or @forward to import a file. Having just refactored a massive monorepo (136 files touched) to use the new system, this was not a nice thing to see in our Jenkins console.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new directory, with two files, index.scss and _child.scss
  2. In index.scss write the line @use 'child';
  3. In _child.scss write some basic CSS, like body { height: 100%; }
  4. Run scss-bundle with index.scss as the entryFile
  5. Terminal prints an error that it "Can't find stylesheet to import", pointing to the line with the @use.
  6. Observe that if you change to using @import, everything works as expected.

Expected behavior
I would expect files imported with @use or @forward to be found and bundled correctly.

Package version: v3.1.1
Node version: v12.14.1
OS: Windows (but also Bash on the Jenkins box)

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