新起了一个vue3 ts的taro项目, 通过fork-ts-checker-webpack-plugin配置eslint与ts运行时能检查的功能时出现了bug
下面是我的配置项
chain.plugin('tschecker').use(require('fork-ts-checker-webpack-plugin'), [
{
typescript: {
configFile: path.resolve(__dirname, '..', 'tsconfig.json'),
build: true,
extensions: {
vue: {
enabled: true,
compiler: '@vue/compiler-sfc'
}
}
},
eslint: {
files: './src/**/*.{ts,tsx,js,jsx,vue}'
}
}
])
bug
在.vue文件中 如果代码是eslint错误会抱错误这种是没问题的, 但是ts错误不会被识别到
在.ts文件是没有问题的, ts和eslint的错误都能识别到
求大佬们帮忙看下 如何解决.vue文件中 ts错误不生效的问题
https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/801


检查你的fork-ts-checker-webpack-plugin是什么版本,高版本放弃了对vue.js的支持