Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue.use 和 vue.default.use问题导致报错 #249

Open
bighhhh opened this issue Nov 3, 2023 · 1 comment
Open

vue.use 和 vue.default.use问题导致报错 #249

bighhhh opened this issue Nov 3, 2023 · 1 comment

Comments

@bighhhh
Copy link

bighhhh commented Nov 3, 2023

#192
这个议题里显示的已经解决找不到util问题了,但我这还是报类似的错误
微信截图_20231103095324
微信截图_20231103095546
我看.mjs中是没有default的判断的,而cjs中是加了判断的,但是我这代码编译后是使用的mjs文件代码,导致没有找default而找不到use函数
下面是编译后的我自己的代码
编译后

@bighhhh
Copy link
Author

bighhhh commented Nov 3, 2023

// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
var external_commonjs_vue_commonjs2_vue_root_Vue_ = webpack_require(3797);
;// CONCATENATED MODULE: ./node_modules/vue-echarts/node_modules/vue-demi/lib/index.mjs

我这编译后显示vue是引入的commonjs版本,但是vue-demi却使用的mjs版本文件,不知道是哪里问题导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant