Solution:
Add skipLibCheck: true in tsconfig.json
Please refer to the configuration:
{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"skipLibCheck": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
Read More:
- [Solved] vite package Error: globalThis is not defined
- How to Solve Vue-devtool Package Error
- Method of identifying vite alias path by idea webstorm
- Vue3 + vite install element-plus error [How to Solve]
- How to Solve Vue3 using deep syntax Error
- [Solved] Vite Error: Failed to load module script: Expected a JavaScript module script but the server…
- After Vite starts, it will prompt “network: use ` — host ` to expose”, and the service cannot be accessed through network IP
- [Solved] Some chunks are bigger warning on vite packaging
- [Solved] Vite packing error: some chunks are larger than 500kb after minification
- How to Solve Node start error listen eacces 0.0.0.0:810
- How to Solve Vue project Startup Error (Node Upgrade issue)
- How to Solve VUE Error: Mixed spaces and tabs
- How to Solve npm-install Command -4048 Error
- Json.parse: All Error & How to Solve Them
- How to Solve Nodejs error: cannot find module ‘. /application’
- How to Solve Vscode save Vue file eslint error
- How to Solve Converting circular structure to JSON‘ Error
- How to Solve Vue cli configuration SCSS global variable error
- [Chrome]: DevTools failed to load source map… (How to Solve)
- [Solved] vite2+vue3 jsx Error: React is not defined