hujiulong / vue-3d-model

📷 vue.js 3D model viewer component
https://vue-3d-model.netlify.app
MIT License
2.48k stars 472 forks source link

使用vue3出现TypeError: Cannot read properties of undefined (reading 'extend')问题,如何解决? #460

Open greysonkk opened 2 years ago

greysonkk commented 2 years ago

image

bgitfk commented 1 year ago

我也出现了这个bug...

Marianna-Ma commented 1 year ago

我也是。。。。

1242174973 commented 1 year ago

怎么解决了

bgitfk commented 1 year ago

没解决,用别的插件了 v-3d-loader

LXMsaal commented 1 year ago

插件版本升到2

geshichuangdi commented 1 year ago

插件版本升到2

什么意思?

LXMsaal commented 1 year ago

插件版本升到2

什么意思?

image

54mu3l commented 1 year ago

I've the same error.

TypeError: Cannot read properties of undefined (reading 'extend')
    at Module.fb15 (vue-3d-model.umd.js:78116:1)
    at __nested_webpack_require_658__ (vue-3d-model.umd.js:30:1)
    at eval (vue-3d-model.umd.js:94:1)
    at eval (vue-3d-model.umd.js:97:1)
    at webpackUniversalModuleDefinition (vue-3d-model.umd.js:3:1)
    at eval (vue-3d-model.umd.js:10:1)
    at ./node_modules/vue-3d-model/dist/vue-3d-model.umd.js (vendor.js:6235:1)
    at __webpack_require__ (app.js:1684:33)
    at fn (app.js:1985:21)
    at eval (index.js??clonedRuleSet-2.use[0]!./node_modules/@quasar/app-webpack/lib/webpack/loader.vue.auto-import-quasar.js??ruleSet[0].use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[1]!./src/pages/XXXXXXXX.vue?vue&type=script&lang=js:13:70)
t

I'm using vue 3.2.45

bete7512 commented 1 year ago

The same problem here.

NewNameArk commented 1 year ago

升级到2也没好使

xudingxie commented 11 months ago

使用npm指定版本安装。如果不指定版本,会自动选择1..的版本。 哪怕再package.json中指定了版本,在package-lock.json中依旧是旧版本,使用npm update vue-3d-model之后发现依旧锁定旧版本。因此需要指定此版本

npm install vue-3d-model@v2.0.0-alpha.4 --save  
dragonzoebai commented 9 months ago

不指定版本的时候默认安装的是1版本,1版本只支持vue2。在vue3中需要显示指定2版本,npm install vue-3d-model@v2.0.0-alpha.4 --save