作者:ycy1873187 | 来源:互联网 | 2023-02-07 09:44
这是我的打字稿项目的配置文件:
{
"compilerOptions": {
"sourceMap": true,
"target": "es5",
"outFile": "js/app.js"
},
"files": [
"src/main.ts",
"src/bootstrap.ts",
"libs/phaser.d.ts"
],
"exclude": [
"docs",
"css",
"index.html"
]
}
VS Code给了我这个错误:
file:'file:///e%3A/Programming/TypeScript/tsconfig.json'严重性:'错误'消息:'在配置文件中找不到输入'e:/Programming/TypeScript/tsconfig.json'.指定的'include'路径为'["**/*"]','exclude'路径为'["node_modules","bower_components","jspm_packages"]'.' at:'1,1'来源:'js'
我搜索了tsconfig文件的定义,但我找不到此错误的来源.我在这做错了什么?用tsc编译时,一切都很好.