vscode 中的所有文件都出现未知单词(CssSyntaxError)stylelint(CssSyntaxError)

问题描述 投票:0回答:1

我的所有文件仅在 VS Code 中显示 css 语法错误 - 特别是在 JavaScript/TypeScript 文件中的

import
语句中。

我该怎么做才能解决这个问题?它不影响代码的执行。光是看着就很烦人。

this is the issue

我尝试禁用所有扩展并重新启动,但它不起作用。

css visual-studio-code settings vscode-extensions
1个回答
0
投票

似乎很多人过去都遇到过这种情况(请参阅https://github.com/stylelint/vscode-stylelint/issues/397),对于他们中的许多人来说,卸载除 之外的所有 stylelint 扩展官方的(

stylelint.vscode-stylelint
)解决了这个问题(source)。

© www.soinside.com 2019 - 2024. All rights reserved.