刚初始化一个uniapp
项目,项目中的tsconfig.json
就报以下错误:
No inputs were found in config file 'd:/xxxx/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.
解决方法一:
在根目录下新增一个空的ts
文件就可以解决报错问题
解决方法二:
将项目中的tsconfig.js
文件改为jsconfig.js
// jsconfig.js
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["src/*"],
"style/*": ["src/style/*"]
},
"types": [
"@dcloudio/types",
"miniprogram-api-typings",
"mini-types"
]
},
"exclude": ["node_modules", "dist"]
}