Bug? Vite compiles some scss and errors on others #10176
onionhammer
started this conversation in
General
Replies: 1 comment
-
do you use jquery or do you have an alias on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm porting an app over from CRA to Vite and am seeing issues mainly around the SCSS. For some reason some of the directives such as the @imports are not getting compiled away but not in every file, only some of the files.
In this image you can see a search for an @import I do; the css is the build output (there are only 6 files with @import), but the source has over 50.. so it's working for most files, then during the compilation step I'm seeing several errors where Postcss is complaining about SCSS syntax, like:
Unexpected "$"
where it complains about a SCSS variable
Unexpected '/'. Escaping special characters with \\ may help.
where it complains about single-line comments (supported in SCSS but not CSS).
Beta Was this translation helpful? Give feedback.
All reactions