You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the error doesn't happen on stackblitz.
npx tiged hi-ogawa/reproductions/vite-17909-sass-import-directory-index repro
cd repro
npm i
npm run build # or dev
x Build failed in 151ms
error during build:
[vite:css] [sass] EISDIR: illegal operation on a directory, read
╷
1 │ @import "./dir"
│ ^^^^^^^
╵
src/test.scss 1:9 @import
src/main.scss 5:9 root stylesheet
file: /home/hiroshi/code/personal/reproductions/repro/src/main.scss
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
This is a regression of #17909
@userquin found an issue when testing pkg-pr-new release for vuetify https://github.com/userquin/vuetify-vite-modern-sass/
I'm still not sure if this is Vite side bug. This could be due to some inconsistency of how sass triggers custom importers.
Reproduction
https://github.com/hi-ogawa/reproductions/tree/main/vite-17909-sass-import-directory-index
Steps to reproduce
For some reason, the error doesn't happen on stackblitz.
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: