首先说明编译打包均可以通过,所以纯粹就是视觉上的不舒服
这是Vetur插件产生的警告,是不是需要更改一下某些设置来匹配typescript的语法?但是我使用'../utils/https'
就能自动跳转动文件了,请求大佬指点。
tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": [
"webpack-env"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": [
"node_modules"
]
}
vue使用ts后,引入ts文件,vetur报错Cannot find module '@/api/auth/index'借助这个问题解决的