quill-image-resize-module
quill-image-resize-module copied to clipboard
moduleClass is not a constructor
Uncaught TypeError: moduleClass is not a constructor at SnowTheme.addModule (quill.js:6130) at SnowTheme.addModule (quill.js:6774)
The above error occurred in the <Quill> component:
Any body have that same issue with me? Please help me
Use import ImageResize from 'quill-image-resize';
instead of import {ImageResize} from 'quill-image-resize';
I think given that the dist output is in UMD format, you would need to do something like the following:
import ImageResize from 'quill-image-resize';
const imageResize = ImageResize.default;