quill-image-uploader icon indicating copy to clipboard operation
quill-image-uploader copied to clipboard

quill-image-uploader broken when used with Next.js (cannot import global css modules

Open Johnrobmiller opened this issue 2 years ago • 1 comments

Should be easy to replicate, just try to use quill-image-uploader within a next.js project.

Screenshot:

image

Johnrobmiller avatar Jun 27 '22 15:06 Johnrobmiller

@NoelOConnell can you please remove this line: https://github.com/NoelOConnell/quill-image-uploader/blob/master/src/quill.imageUploader.js#L3 Then every consumer of this package can import the style css if needed with import 'quill-image-uploader/src/quill.imageUploader.css'

dardesantis avatar Sep 07 '22 22:09 dardesantis

Can confirm the CSS import prevents usage in Next.js (at least until this discussion is resolved, which may be never).

SamuelMS avatar Sep 30 '22 03:09 SamuelMS

I've created a fix for this in PR: https://github.com/NoelOConnell/quill-image-uploader/pull/87

jgillick avatar Mar 17 '23 21:03 jgillick

Hopefully this is fixed now with package version 1.3.0 now thanks to @jgillick for the PR.

NoelOConnell avatar May 11 '23 09:05 NoelOConnell