export 'default' (imported as 'mod') was not found in '-!../../../../node_m


报错“

export 'default' (imported as 'mod') was not found in '-!../../../../node_module
s/cache-loader/dist/cjs.js!../../../../node_modules/thread-loader/dist/cjs.js??c
lonedRuleSet-2[0].rules[0].use[1]!../../../../node_modules/babel-loader/lib/inde
x.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-2[0].rules[0].us
e[3]!../../../../node_modules/thread-loader/dist/cjs.js??ruleSet[0].rules[0].use
[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index
.vue?vue&type=script&lang=ts&' (possible exports: __esModule)

报以上错误的问题原因:

我的源代码如下:

index.vue



原因其实是我默认导出的TestModule和其他组件默认导出的名字重名了,所以报错,将这个名字修改一下,系统可以正常运行。

相关