vue icon indicating copy to clipboard operation
vue copied to clipboard

use vite with vue2 on ssr, dynamic import cause Cannot add property _Ctor, object is not extensible

Open 869288142 opened this issue 2 years ago • 2 comments

Version

2.6.14

Reproduction link

github.com

Steps to reproduce

  1. git clone repo
  2. pnpm install
  3. pnpm build
  4. node server.js
  5. 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

869288142 avatar Feb 17 '22 15:02 869288142

closed

Juninhoww2 avatar Feb 24 '22 01:02 Juninhoww2

Same as this https://github.com/vitejs/vite-plugin-vue2/issues/20

lzxb avatar Jul 26 '22 07:07 lzxb