vue
vue copied to clipboard
use vite with vue2 on ssr, dynamic import cause Cannot add property _Ctor, object is not extensible
Version
2.6.14
Reproduction link
Steps to reproduce
- git clone repo
- pnpm install
- pnpm build
- node server.js
- open http://localhost:3000/ in browser
What is expected?
use vite with vue2 on ssr, dynamic import work
What is actually happening?
Cannot add property _Ctor, object is not extensible
i find the same issue https://github.com/vuejs/vue/issues/11656 , but no fixed
I send a PR https://github.com/vuejs/vue/pull/12320/commits
closed
Same as this https://github.com/vitejs/vite-plugin-vue2/issues/20