hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.43k stars 917 forks source link

[Question] 为什么全局引入后会出现这个问题 #827

Open hyk1st opened 1 year ago

hyk1st commented 1 year ago

💬 Questions and Help

mavon-editor.js:1

   Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_c')
at Proxy.render (mavon-editor.js:1:279858)
at renderComponentRoot (runtime-core.esm-bundler.js:898:44)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5631:57)
at ReactiveEffect.run (reactivity.esm-bundler.js:187:25)
at instance.update (runtime-core.esm-bundler.js:5745:56)
at setupRenderEffect (runtime-core.esm-bundler.js:5759:9)
at mountComponent (runtime-core.esm-bundler.js:5541:9)
at processComponent (runtime-core.esm-bundler.js:5499:17)
at patch (runtime-core.esm-bundler.js:5101:21)
at mountChildren (runtime-core.esm-bundler.js:5285:13)
MoJingYan commented 1 year ago

解决了吗 我也遇到了

6lszxz commented 1 year ago

同问

lichong951 commented 1 year ago

同问 为什么会这样?

Uncaught TypeError: Cannot read property '_c' of undefined at Proxy.render (mavon-editor.js?5076:1) at renderComponentRoot (runtime-core.esm-bundler.js?d2dd:898) at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js?d2dd:5631) at ReactiveEffect.run (reactivity.esm-bundler.js?89dc:187) at instance.update (runtime-core.esm-bundler.js?d2dd:5745) at setupRenderEffect (runtime-core.esm-bundler.js?d2dd:5759) at mountComponent (runtime-core.esm-bundler.js?d2dd:5541) at processComponent (runtime-core.esm-bundler.js?d2dd:5499) at patch (runtime-core.esm-bundler.js?d2dd:5101) at mountChildren (runtime-core.esm-bundler.js?d2dd:5285) mavon-editor.js?5076:1 Uncaught (in promise) TypeError: Cannot read property '$refs' of undefined at Proxy.editableTextarea (mavon-editor.js?5076:1) at Proxy.eval (mavon-editor.js?5076:1)

lichong951 commented 1 year ago

"mavon-editor": "^3.0.0-beta" 有位大佬给解答了

coderYxw commented 1 year ago

npm install mavon-editor@next就可以了