quill-image-resize-module icon indicating copy to clipboard operation
quill-image-resize-module copied to clipboard

Using Quill and React `TypeError: window.Quill is undefined` error

Open pc-magas opened this issue 7 years ago • 2 comments

I made a sample application (https://github.com/pc-magas/react-quill-demo) using react and Quill expecially the https://github.com/zenoamaro/react-quill and I am trying to load the plugin. But I get the error:

TypeError: window.Quill is undefined

Do you fellows have an Idea why does it happen?

The project I did it to have a clear base to demonstrate the possibe bug.The file that throws it is: https://github.com/pc-magas/react-quill-demo/blob/master/src/MyEditor.js

The libraries that I use are:

Also I used the normal Quill library had had the very same error.

pc-magas avatar Jun 27 '17 13:06 pc-magas

I'm not a fan of the webpack dependency personally but a solution referenced by someone else on another thread works:

https://github.com/kensnyder/quill-image-resize-module/issues/7#issuecomment-304463415

seandearnaley avatar Jun 30 '17 05:06 seandearnaley

I've shared my solution here, if it helps - https://github.com/davidroyer/vue2-editor/issues/91#issuecomment-1416340643

RaihanShezan avatar Feb 03 '23 20:02 RaihanShezan