SASS inspection doesnt recognise SASS Namespaces

I am using Material Design Components which make heavy use of advanced SASS language features such as SASS Namespaces. The PhpStorm SASS inspection does not recognise this, even though they compile just fine with a SASS compiler.

An example of this:

0
4 comments

works fine for me when using similar syntax:

What IDE version do you use? Can you share a sample project the issue can be reproduced with?

0
Avatar
Permanently deleted user

Hi Elena,

I was using PhpStorm 2019.1.1, I've now updated to 2019.1.4 and it's still happening.

I have v191.5849.33 of the SASS plugin.

I've created a sample project you can download here:

https://drive.google.com/file/d/1-Nduow0uMVOmeAAVX_66q5Fl-zECMD46/view?usp=sharing

 

I opened up the Material Design Components source and PhpStorm is also very much confused about the syntax there:

0

Basic support for @use/@forward at-rules is available since 2019.3 (see https://youtrack.jetbrains.com/issue/WEB-41729).

 

Please consider upgrading

1
Avatar
Permanently deleted user

Thanks Elena,

I updated and it's all working great now!

 

1

Please sign in to leave a comment.