新建一个vue3的项目发现在package.json文件老是被VScode编辑器提示以下报错,经过强大的搜索之后发现这是由于,无法从此地址(vscode://schemas/settings/configurationDefaults)加载模块,

Problems loading reference 'vscode://schemas/settings/configurationDefaults': Unable to load schema from 'vscode://schemas/settings/configurationDefaults': cannot open vscode://schemas/settings/configurationDefaults. Detail: Unable to resolve text model content for resource vscode://schemas/settings/configurationDefaults.(768)

解决方法:在项目根目录的.vscode文件夹下增加settings.json文件并添加如下配置

{
  "json.schemaDownload.enable": true
}

Logo

前往低代码交流专区

更多推荐