'/node_modules/.vite/vue.js?v=' does not provide an export named 'createElementBlock'
Version
3.2.2
Reproduction link
https://github.com/shenron/vite-demo/tree/sfc-issue
Steps to reproduce
- npm ci
- npm run dev
What is expected?
Just working
What is actually happening?
After launch the application in the browser I can see this error:
'/node_modules/.vite/vue.js?v=5b6c9c24' does not provide an export named 'createElementBlock'
The bug appear after @vue/compiler-sfc@3.1.5 release.
Temporary solution at https://github.com/vitejs/vite/issues/4573#issuecomment-896893090
@posva Thank you.
Duplicate of https://github.com/vitejs/vite/issues/4573
vitejs/vite#4573 的临时解决方案(评论)
How to solve vue2