Subscribe on changes!

'/node_modules/.vite/vue.js?v=' does not provide an export named 'createElementBlock'

avatar
Aug 12th 2021

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.

avatar
Aug 12th 2021

@posva Thank you.

Duplicate of https://github.com/vitejs/vite/issues/4573

avatar
Oct 11th 2021

vitejs/vite#4573 的临时解决方案(评论)

How to solve vue2