gpt4 book ai didi

json - 不支持应用于文档的架构类型 package.json

转载 作者:行者123 更新时间:2023-12-04 11:06:46 25 4
gpt4 key购买 nike

谁能解释一下我的 package.json 文件中的这个警告是什么?我已经搜索了一点,但我似乎无法理解这是否只是兼容性/奇怪的行为,或者是否有比这更糟糕的事情。

我截取了以下警告消息的屏幕截图。
如果在其他地方已经回答了这个问题并且我忽略了它,我深表歉意。



附件是我的 package.json 全文:

{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"projects": {
"project": {
"architect": {
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"exclude": [ "**/node_modules/**" ],
"tsConfig": [ "tsconfig.json" ]
}
},
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"assets": [ "src/favicon.ico" ],
"index": "src/index.html",
"main": "src/main.ts",
"outputPath": "dist",
"polyfills": "src/polyfills.ts",
"scripts": [
"node_modules/uikit/dist/js/uikit.min.js",
"node_modules/uikit/dist/js/uikit-icons.min.js"
],
"styles": [
"node_modules/uikit/dist/css/uikit.min.css",
"src/styles.scss",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"tsConfig": "tsconfig.json"
},
"configurations": {
"development": {
"baseHref": "/aspnetcoreangular/",
"buildOptimizer": true,
"extractCss": true,
"extractLicenses": true,
"namedChunks": false,
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"vendorChunk": false
},
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.production.ts"
}
],
"baseHref": "/aspnetcoreangular/",
"buildOptimizer": true,
"extractCss": true,
"extractLicenses": true,
"namedChunks": false,
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"vendorChunk": false
},
"staging": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.staging.ts"
}
],
"baseHref": "/aspnetcoreangular/",
"buildOptimizer": true,
"extractCss": true,
"extractLicenses": true,
"namedChunks": false,
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"vendorChunk": false
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": { "browserTarget": "project:build" }
}
},
"cli": {
"warnings": {
"typescriptMismatch": false,
"versionMismatch": false
}
},
"prefix": "app",
"projectType": "application",
"root": "",
"sourceRoot": "src"
}
}
}

最佳答案

https://developercommunity.visualstudio.com/t/support-json-schema-draft-06-draft-07/796216
VS 仍然不支持 json-schemes 的草案 7,并且停留在草案 4-5。因此警告。
这是一个误报。
编辑
Mike(见下文)建议了一个解决方法。一定要检查一下,如果它有效,请给 Mike 一个赞(这样他就会成为列出的第一个答案)。

关于json - 不支持应用于文档的架构类型 package.json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51483005/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com