-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Astro 1.6.3 broke scss imports #5441
Comments
I think this wasn't a bug. you can change |
1.6.2 and below also seems to cause the error, which is strange because I remember seeing it work too but now it doesn't. Anyways I traced this back to Vite's custom importer which is using an older importer API syntax ( Still playing with things at the moment but I should be able to find a backwards-compatible fix. |
Should be fixed at vitejs/vite#11079. I'd also need to make a small change in Astro to be lenient when inling styles as some SCSS files are partials and can't be inlined. |
What version of
astro
are you using?1.6.10
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
pnpm
What operating system are you using?
windows
Describe the Bug
In Astro 1.6.2 I can use SCSS imports like this in .astro files:
In Astro 1.6.3-1.6.10 I'm getting
Also, the same thing from another angle.
In astro 1.6.2 config, this works fine:
Astro 1.6.3 throws
Error: This file is already being loaded.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-29kwpe-br2j1m?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: