0

I am using include-media in a project and getting the syntax error

[scss] ) expected

when viewing this mixin in my vscode editor. I have had a look at this question, but it is not about the same syntax I am experiencing.

Here is a screenshot of the section with a problem in this file

enter image description here

I have not made not made any changes to this mixin, I simply downloaded and included it in the project it as outlined here

Questions:

  1. What is causing this error?
  2. How come I am still able to use this mixin even though it has an error?
  3. How can I solve this?
Siya Mzam
  • 4,655
  • 1
  • 26
  • 44

1 Answers1

1

1. What is causing this error? This issue is occuring because vscode editor does not support css preprocessors completely.

2. How come I am still able to use this mixin even though it has an error? You will get your output as the include-media scss is completely fine.

3. How can I solve this? You need to add vscode service for css which will help to detect css pre-processors syntax and your error will be resolved. Include this vscode script in your vscode editor. As mention here.

https://github.com/Microsoft/vscode-css-languageservice

Thanks

Samarth
  • 49
  • 2
  • 13