vue CLI 3 import image resize module
See original GitHub issueI use vue cli 3 and last version this repo .
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';
import Quill from 'quill';
import { quillEditor } from 'vue-quill-editor';
// image drop
import { ImageDrop } from 'quill-image-drop-module';
Quill.register('modules/imageDrop', ImageDrop);
console log
image-resize.min.js?f318:1 Uncaught TypeError: Cannot read property 'imports' of undefined
at Object.eval (image-resize.min.js?f318:1)
at e (image-resize.min.js?f318:1)
at Object.eval (image-resize.min.js?f318:1)
at e (image-resize.min.js?f318:1)
at eval (image-resize.min.js?f318:1)
at eval (image-resize.min.js?f318:1)
at eval (image-resize.min.js?f318:1)
at eval (image-resize.min.js?f318:1)
at Object../node_modules/quill-image-resize-module/image-resize.min.js (app.js:2556)
at __webpack_require__ (app.js:725)
why do not you change the documentation if it will not work like the documentation? !!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:28
Top Results From Across the Web
Vue Image Upload and Resize - CodeSandbox
Minimal demo for use of the vue-image-upload -resize plugin. ... The Vue build version to load with the `import` command ... import Vue...
Read more >vue-image-upload-resize - npm package - Snyk
A simple Vue.js component for client-side image upload with resizing For more information about how to use this package see README.
Read more >javascript - Can't resize image with Pica in Vue CLI application
Well, I misunderstood the Pica's API. Instead of the File object, I should use the <img src="" /> tag. Working example:
Read more >quill-image-resize-vue - npm
'quill-image-resize-module's Fixed Version in Vue'. Latest version: 1.0.4, last published: 3 years ago. Start using quill-image-resize-vue ...
Read more >Using quill modules with vue2-editor and webpack mix-Vue.js
Just install npm i --save quill-image-resize-vue and use another file: import { VueEditor,Quill } from 'vue2-editor' import ImageResize from 'quill-image-resize ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay so I was able to solve this problem for SPA apps by doing this:
You will have to make a new file called vue.config.js
Paste this code in there:
What this does is it helps Vue import quill and help register the Image resize module
and in the options for quill, make the modules true as such:
and voila! The image resize and drop should work.
I got a same error and I’ve fixed as below
. The cause I loaded quill resize module as below
and I fixed as below, and the error has gone.
Good luck!