{ "extends": "@vue/tsconfig/tsconfig.dom.json", "compilerOptions": { "target": "ESNext", "module": "ESNext", "moduleResolution": "Node", "experimentalDecorators": true, "verbatimModuleSyntax": false, "noImplicitAny": false, "strictPropertyInitialization": false, // 新增:解决TypeORM字段未初始化警告 "strict": false, // 新增:关闭严格模式(新手友好,避免冗余警告) "skipLibCheck": true, // 新增:跳过库类型检查(避免element-plus/typeorm类型冲突) "resolveJsonModule": true, // 新增:允许导入JSON模块 "resolveExtensions": [".ts", ".js", ".vue", ".json"], // 新增:自动解析扩展名 "baseUrl": ".", // 新增:路径别名基准(修复/@/*等别名失效) "typeRoots": [ // 新增:指定类型声明目录(包含自定义类型) "./node_modules/@types", "./typings", "./src/types" ], "types": [ "./build/cool/eps", "./env", "@cool-vue/crud/index", "@cool-vue/vite-plugin/client", "element-plus/global", "vue" ], "paths": { "/@/*": ["./src/*"], "/$/*": ["./src/modules/*"], "/#/*": ["./src/plugins/*"], "/~/*": ["./packages/*"] } }, "include": [ "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "typings/**/*.d.ts", // 新增:包含自定义类型声明(如typeorm扩展) "build/**/*.ts" // 新增:包含build目录的类型文件 ], "exclude": ["node_modules", "dist"] }