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

I am getting Cannot read properties of undefined (reading 'imports') #154

Open
kaurkaranjeet opened this issue Dec 11, 2023 · 4 comments
Open

Comments

@kaurkaranjeet
Copy link

Hi, I am getting this error on my browser console. I am using Vue2.6. I have installed this version Here is my package.json
"quill": "^1.3.7", "quill-image-drop-module": "^1.0.3", "quill-image-resize-module": "^3.0.0",

Here is my Home.vue file
import { VueEditor, Quill } from "vue2-editor"; import { ImageDrop } from "quill-image-drop-module"; import ImageResize from "quill-image-resize-module"; Quill.register("modules/imageDrop", ImageDrop); Quill.register("modules/imageResize", ImageResize);

In IDE i am getting " Could not find a declaration file for module 'quill-image-resize-module'. Try npm install @types/quill-image-resize-moduleif it exists or add a new declaration (.d.ts) file containingdeclare module 'quill-image-resize-module';Vetur(7016) "

in console i am getting
vue-router.esm.js:2316 TypeError: Cannot read properties of undefined (reading 'imports') at Object.eval (image-resize.min.js:1:1) at e (image-resize.min.js:1:1) at Object.eval (image-resize.min.js:1:1) at e (image-resize.min.js:1:1) at eval (image-resize.min.js:1:1) at eval (image-resize.min.js:1:1) at eval (image-resize.min.js:1:1) at eval (image-resize.min.js:1:1) at ./node_modules/quill-image-resize-module/image-resize.min.js (src_views_listYourProperty_ListYourPropBuildListing_vue.js:445:1) at __webpack_require__ (app.js:1057:33)

@maykon-oliveira
Copy link

Me too.

@maks1mp
Copy link

maks1mp commented Feb 6, 2024

I am facing the same issue. Any ideas?

@hsalem7
Copy link

hsalem7 commented Feb 26, 2024

I think you are using the latest version of quill while this library supports only the old version.

@xinyu-yu
Copy link

xinyu-yu commented Feb 29, 2024

that answer ,solved my problem

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

5 participants