element-plus: [Bug Report] Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=a348567b' does not provide an export named 'createElementBlock'
Element Plus version
1.0.2-beta.70 (any)
Version
OS/Browsers macOS 11.4 node 14.5.0 npm 7.14.0 vite latest
Steps to reproduce
$ npm init vite@latest
$ cd vite-project
$ npm i
$ npm run dev # ok
$ npm i -S element-plus@latest
$ npm run dev # error
What is Expected?
It works normally in vue/cli
What is actually happening?
Chrome Browser Devtools :
HelloWorld.vue:28 Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=a348567b' does not provide an export named 'createElementBlock'
when I remove it
$ npm uninstall element-plus
still
HelloWorld.vue:28 Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=a348567b' does not provide an export named 'createElementBlock'
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (4 by maintainers)
@noyidoit what is the exact version of Vue ?
I had this same issue 10 secondes ago, I updated my
package.jsonto useVue 3.2.2and the issue is gone.I(
vue: 3.15) upgraded it to (vue)3.2+and solved the same problem as youYou can try upgrading the version of
vueusing ‘–force’ … and maybe can solved this problemJust upgrade to the latest version of Vue. I hope to update it as soon as possible