hellodigua / vue-danmaku

基于 Vue 的弹幕交互组件 | A danmaku component for Vue
https://hellodigua.github.io/vue-danmaku
MIT License
620 stars 60 forks source link

nuxt3运行中报错 Cannot read properties of undefined (reading 'defineComponent') #49

Closed joshsyj closed 1 year ago

hellodigua commented 1 year ago

请附上使用的vue版本、vue-danmaku版本,nuxt3版本

joshsyj commented 1 year ago

"vue3-danmaku": "^1.5.1", "nuxt": "3.5.0", "vue": "3.3.4"

hellodigua commented 1 year ago

nuxt项目需要在组件外包裹一层 <client-only></client-only>

qq651901286 commented 1 year ago

具体怎么操作呀,新手学Nuxt3中 @hellodigua

hellodigua commented 1 year ago

具体怎么操作呀,新手学Nuxt3中 @hellodigua

nuxt项目需要在组件外包裹一层 <client-only></client-only>

qq651901286 commented 1 year ago

image

hellodigua commented 1 year ago

发一下gitee的仓库我去跑跑看

qq651901286 commented 1 year ago

麻烦大佬了 https://gitee.com/qq651901286/vue-danmaku_test.git @hellodigua

qq651901286 commented 1 year ago

image 刚刚试了一下,可以了,谢谢大佬