You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⨯ ReferenceError: document is not defined
at Array.forEach (<anonymous>)
at [project]/src/app/design-library/your-designs/[template_id]/editor/TextEditor.tsx [app-ssr] (ecmascript) (src/app/design-library/your-designs/[template_id]/editor/TextEditor.tsx:3:0)
at [project]/src/app/design-library/your-designs/[template_id]/editor/EditorPanel.tsx [app-ssr] (ecmascript) (src/app/design-library/your-designs/[template_id]/editor/EditorPanel.tsx:26:0)
at [project]/src/app/design-library/your-designs/[template_id]/editor/page.tsx [app-ssr] (ecmascript) (src/app/design-library/your-designs/[template_id]/editor/page.tsx:3:0)
1 | import { toastError } from "@/lib/toastLib";
2 | import { debounce } from "lodash";
> 3 | import Quill, { Delta, EmitterSource, Range } from "quill";
4 | import "quill/dist/quill.snow.css";
5 | import React, {
6 | forwardRef, {
digest: '2105077097'
I'm using React 19 and encountering a server-side error every time I refresh the page where Quill is used. Quill is implemented in a client component, and I'm using it for type specification with useRef and forwardRef. According to ChatGPT (though I haven't verified this myself), the import statements alone might be causing the issue by running on the server side. I could probably resolve this by dynamically importing Quill inside useEffect and replacing every instance where I use Quill for typing with any, but I'd prefer not to take that approach.
The text was updated successfully, but these errors were encountered:
I'm using React 19 and encountering a server-side error every time I refresh the page where Quill is used. Quill is implemented in a client component, and I'm using it for type specification with useRef and forwardRef. According to ChatGPT (though I haven't verified this myself), the import statements alone might be causing the issue by running on the server side. I could probably resolve this by dynamically importing Quill inside useEffect and replacing every instance where I use Quill for typing with any, but I'd prefer not to take that approach.
The text was updated successfully, but these errors were encountered: