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
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 https://github.com/vuejs/vue-next instead.
Describe the bug
Create a simple vue component and everything works fine.
But after I change the
lang
attribute of style tag fromscss
tostylus
and modify the code tovite emitted an internal server error.
It seems that vite still thinks this is
scss
rather than a stylus code.Reproduction
You can easily reproduce the bug by following the description.
I used the vue2 plugin but it doesn't matter. I checked that it can be reproduced in vue3.
System Info
System: OS: macOS 11.2.3 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 56.57 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 15.14.0 - /var/folders/49/7ydn2n095x90t_qdh7y9pzsh0000gn/T/fnm_multishells/56185_1625804117253/bin/node Yarn: 1.22.10 - /var/folders/49/7ydn2n095x90t_qdh7y9pzsh0000gn/T/fnm_multishells/56185_1625804117253/bin/yarn npm: 7.7.6 - /var/folders/49/7ydn2n095x90t_qdh7y9pzsh0000gn/T/fnm_multishells/56185_1625804117253/bin/npm Browsers: Chrome: 91.0.4472.114 Firefox: 89.0 Safari: 14.0.3 npmPackages: vite: 2.4.1 => 2.4.1
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: