vscode-cssvar: The extension stopped working again

This extension will soon make me hysterical 😃 Then everything worked, but now I have deployed a larger project and everything has apparently broken… Did everything exactly the same as then, but it still issues a warning: picture-1

Here are my settings in the global file — setting.json picture-2

I also attach screenshots from the package.json file and node_modules folder with proof that I have installed the necessary packages: Code_lqVMx89GT6 Code_XygbnWHf38

The funny thing is that everything works well with CSS files, but as soon as I move into a project where variables are written in SCSS files, everything immediately stops working and knocks out a warning, which is shown in the very first screenshot. Running VS Code as an administrator didn’t solve the problem either. Maybe I forgot to do something, but that’s just not clear to me yet. Either, I did everything right, and it’s already about expansion.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 38 (20 by maintainers)

Commits related to this issue

Most upvoted comments

Now there is no error and everything works fine 😌 But! There is another interesting point

The following error is displayed in VS Code DevTools image When I started the extension locally, this error was also displayed in the VS Code console Maybe this is also somehow related to Windows

I managed to solve the problem!!! 🤩 In general, yes, if you replace path with fsPath, then the error does not appear The trick is that in Windows OS, a backslash is used in the paths — \, most likely this was the cause of the problem I think it’s not for nothing that all this happened because now you will know that on Windows, paths are written a little differently 😇

The terminal did not issue an error when executing the command image

It turns out that the problem is not on my side? Anyway, I will wait for version 2.0 😇

Is it possible that it’s all about the extension itself? I tried to install a similar extension — vunguyentuan.vscode-css-variables and it worked for me. Yes, it also works with jambs, but still. I’m just curious to figure out what the problem is… 😇