export ‘default‘ (imported as ‘mod‘) was not found in ‘../node_modules/ts-loader/index.js
编译警告:如何解决:在webpack配置文件里给ts-loader添加options: { appendTsSuffixTo: [/.vue$/] }, 如下:// webpack.config.jsmodule: {rules: [{test: /\.tsx?$/,loader: 'ts-loader',options: { appendTsSuffixTo: [/\.vue$/] },excl
·
编译警告:
如何解决:
在webpack配置文件里给ts-loader添加options: { appendTsSuffixTo: [/.vue$/] }, 如下:
// webpack.config.js
module: {
rules: [{
test: /\.tsx?$/,
loader: 'ts-loader',
options: { appendTsSuffixTo: ['\\.vue$'] },
exclude: /node-modules/,
}]
},
对于tsx 文件的配置: options: { appendTsxSuffixTo: [/.vue$/] }
更多推荐
已为社区贡献2条内容
所有评论(0)