caroundsky / QA

0 stars 0 forks source link

Vscode #19

Open caroundsky opened 8 months ago

caroundsky commented 8 months ago

vscode中读取vue3的新项目,出现node相关报错

原因可能是vscode客户端的ts版本太低(4.x),vue3是5.x,导致一些node特性识别不到,解决方案:

.vscode/settings 文件中新增 "typescript.tsdk": "node_modules/typescript/lib"