tsconfig.json配置文件
{
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"lib": ["esnext", "dom"],
"types": ["@dcloudio/types"],
"ignoreDeprecations": "5.0",
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
然后在vue文件中使用
<script src="./swipe.wxs" module="swipe" lang="wxs"></script>
VSCode会报错,虽然可以正常运行但是报错看着不爽,请问有解决办法,让他不报错吗?