提示
无法找到模块“@/filter/filter”的声明文件。“d:/code/byWork/mixmarvel/SendAssetsClient/src/filter/filter.js”隐式拥有 "any" 类型。
解决方法
修改 tsconfig.json
{"compilerOptions": {"target": "esnext","module": "esnext","strict": true,"jsx": "preserve","importHelpers": true,"moduleResolution": "node","experimentalDecorators": true,"skipLibCheck": true,"esModuleInterop": true,"allowJs": true,// 允许js"allowSyntheticDefaultImports": true,"noImplicitAny": false,// 不进行any语法检查"forceConsistentCasingInFileNames": true,"useDefineForClassFields": true,"sourceMap": true,"baseUrl": ".","types": ["webpack-env"],"paths": {"@/*": ["src/*"]},"lib": ["esnext","dom","dom.iterable","scripthost"]},"include": ["src/**/*.js",// 导入js"src/**/*.ts","src/**/*.tsx","src/**/*.vue","tests/**/*.js","tests/**/*.ts","tests/**/*.tsx"],"exclude": ["node_modules"]
}