【发布时间】:2021-07-04 04:26:53
【问题描述】:
我在为我的项目创建新的 vue 页面时不断出错。错误是说:
Vetur 在 /xxxx/xxxxxx 中找不到
tsconfig.json或jsconfig.json。
解决这个问题的方法是什么?
【问题讨论】:
我在为我的项目创建新的 vue 页面时不断出错。错误是说:
Vetur 在 /xxxx/xxxxxx 中找不到
tsconfig.json或jsconfig.json。
解决这个问题的方法是什么?
【问题讨论】:
创建文件:)
// tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
// this enables stricter inference for data properties on `this`
"strict": true,
"jsx": "preserve",
"moduleResolution": "node"
}
}
【讨论】:
package.json相同的文件夹:)
tsconfig.json 的新文件并粘贴答案中的内容。