作者:手机用户2502887641 | 来源:互联网 | 2024-10-22 13:03
在tsconfig.json中添加skipLibCheck: true 已解决问题。
请参考配置:
{"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"]
}