user

Great Coder

13 Feb 2022

Invalid CSS after : expected expression was - SASS error

HTML & CSS

Hello, I'd like to ask you a question concerning SCSS. When I use @use, I receive the following error:

Invalid CSS after "…": expected expression was "…"

How can I fix it, please?

Comments

Mohamed Aboelfotoh

13 Feb 2022

Best Answer

best answer
github

I experienced the exact same issue. You read about @use on the SASS official web page, follow the instructions, and create the code in the VS code, but when you save the SCSS or SASS file, you receive this weird Compilation Error. You check it all and everything appears to be in order, but it isn't.

In fact te issue stems from the Visual Studio Code extension you're using to convert SCSS or SASS files to CSS files.

Probably you are you using the widly used SASS compiling extension developed by Ritwick Dey. All you need is to replace it with the Live SASS Compiler extension developed by Glenn Marks.
 

© 2024 Copyrights reserved for web-brackets.com