file typescript/lib/lib.d.ts not found. The file is in the program because Default library for target ‘es3’
problem
jsconfig.json 红线,vscode 提示错误信息
file typescript/lib/lib.d.ts not found. The file is in the program because Default library for target ‘es3’
reason
缺少lib包
solution
配置选项添加:“lib”: [“ESNext”, “DOM”]
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
},
"lib": ["ESNext", "DOM"]
},
"exclude": ["node_modules", "dist"]
}