Skip to content

[sass] Error since v7.0.1 #20346

@msev

Description

@msev

Describe the bug

Hi,

Since version 7.0.1, I've had an error when compiling sass in a particular case.
In a project, I have a folder named like a file at the same level:

dev/
  styles/
    components/
      section.scss
      section/

When i run the vite build command, i have the following error:

[sass] Error: Error: EISDIR: illegal operation on a directory, read
   ╷
36 │ @use 'components/section';

The solution that works is to add the .scss extension to @use, but this always worked before version 7.0.1.
If I rollback to version 7.0.0, I no longer have the problem and compilation works perfectly.

Reproduction

XXX

Steps to reproduce

No response

System Info

System:
    OS: macOS 15.3.2
    CPU: (8) arm64 Apple M1
    Memory: 130.52 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.15.1 - /usr/local/bin/node
    Yarn: 1.22.22 - ~/.yarn/bin/yarn
    npm: 8.19.2 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 137.0.7151.120
    Safari: 18.3.1
    Safari Technology Preview: 26.0

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

Labels

feat: cssp4-importantViolate documented behavior or significantly improves performance (priority)regressionThe issue only appears after a new release

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions