Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'register') #4311

Open
AstrosQ opened this issue Jul 13, 2024 · 2 comments
Open

Cannot read properties of undefined (reading 'register') #4311

AstrosQ opened this issue Jul 13, 2024 · 2 comments

Comments

@AstrosQ
Copy link

AstrosQ commented Jul 13, 2024

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)

@mech01nc01
Copy link

  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

@AstrosQ
Copy link
Author

AstrosQ commented Jul 15, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants