Problems loading reference ‘https://json.schemastore.org/tsconfig‘: Unable to load schema from ‘http

tsconfig.json大括号报错解决方法_tsconfig $schema_单两岁❤的博客-CSDN博客

ts.config.json文件的大括号报错

Problems loading reference 'https://json.schemastore.org/tsconfig': Unable to load schema from 'https://json.schemastore.org/tsconfig': Downloading schemas is disabled through setting 'json.schemaDownload.enable'.

Problems loading reference ‘https://json.schemastore.org/tsconfig‘: Unable to load schema from ‘http_第1张图片

 

解决方法,在ts.config.json文件中添加一个字段,看下面代码

Problems loading reference ‘https://json.schemastore.org/tsconfig‘: Unable to load schema from ‘http_第2张图片

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "compilerOptions": { ... },
}

 添加后,就不报错了Problems loading reference ‘https://json.schemastore.org/tsconfig‘: Unable to load schema from ‘http_第3张图片

你可能感兴趣的:(前端)