visual-studio-code - vscode到处给我无效的符号错误
问题描述
我快疯了,VSCode 到处都给我这个错误(包括 js 文件和 .gitignore .dockerignore 文件,即使是简单的行,例如 .gitignore 中的 node_modules )
我需要一些想法
我的配置文件
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "One Monokai",
"vsicons.dontShowNewVersionMessage": true,
"editor.formatOnSave": true,
"editor.tabSize": 4,
"prettier.tabWidth": 4,
"editor.tabCompletion": "on",
"prettier.singleQuote": true,
"prettier.printWidth": 80,
"window.zoomLevel": 0,
"editor.acceptSuggestionOnEnter": "off",
"editor.minimap.enabled": false
}
我的扩展非常标准
- 更漂亮
- 反应片段
- 码头工人
- 粗鲁的
- 埃斯林特
- 一些随机的主题
- 编辑器配置
- 图形
- 自动导入
解决方案
当安装 macOS 10.15 Catalina 后开始出现此问题时,这些步骤对我有用。
- 使用 重新安装 node.js
nvm
,例如nvm install 10 && nvm use 10
安装和使用最新的 node.js 10.x 版本(选择您的首选版本) eslint
通过重新安装npm i -g eslint
- 重启 VS 代码
推荐阅读
- c# - 列表及其所有嵌套列表值的 Linq 平均值
- php - Laravel:对多个图像进行图像验证不起作用
- dart - 如何在 Flutter 的 TextField 中添加遮罩?
- azure - 在 Azure 中基于 Web 发起创建 IaaS
- google-sheets - 基于 if/then 在多个字段上的条件格式
- wix - 使用自定义操作的 REG_MULTI_SZ 的 MsiSetProperty
- javascript - 以后是否可以将值绑定到函数中的 Vue 元素?
- plot - Jzy3d 3d插值图不渲染
- excel - 如果所有三个条件都完全满足,那么“ok”
- python - 在 Python 中处理嵌套的 JSON