Open AstrosQ opened 4 months ago
1.you are asking here for something that is built on top of quill 2.did you already figures out which one of the additional modules triggers this error? (by commenting one out)? 3.you don't show the line where the register happens
1.yes
2.Yes, there is no problem registering IamgeExtend, but an error will be reported when registering IamgeResize.
3.The line where the register occurs is here(41:1)
Quill.register('modules/imageResize', ImageResize)
Quill.register('modules/imageResize', QuillResizeModule);
seems to work. More https://stackoverflow.com/questions/78032298/quill-js-2-0-0-image-resize-plugin-availability
version: "@vueup/vue-quill": "^1.2.0", "quill-image-super-solution-module": "^2.0.1", "quill-image-resize-vue": "^1.0.4",
question: why is the error reported in this way?
import {Quill, QuillEditor} from "@vueup/vue-quill"; import { ImageResize } from "quill-image-resize-vue"; import { ImageExtend, QuillWatch } from "quill-image-super-solution-module";
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'register') at Function.register (@vueup_vue-quill.js?v=3f40e7b1:1116:76) at setup (TopicEditer.vue:41:1) at callWithErrorHandling (chunk-C3HOAGH2.js?v=3f40e7b1:1565:18) at setupStatefulComponent (chunk-C3HOAGH2.js?v=3f40e7b1:8631:25) at setupComponent (chunk-C3HOAGH2.js?v=3f40e7b1:8592:36) at mountComponent (chunk-C3HOAGH2.js?v=3f40e7b1:6997:7) at processComponent (chunk-C3HOAGH2.js?v=3f40e7b1:6963:9) at patch (chunk-C3HOAGH2.js?v=3f40e7b1:6436:11) at mountChildren (chunk-C3HOAGH2.js?v=3f40e7b1:6680:7) at mountElement (chunk-C3HOAGH2.js?v=3f40e7b1:6587:7)