zenoamaro / react-quill

A Quill component for React.
https://zenoamaro.github.io/react-quill
MIT License
6.68k stars 909 forks source link

The requested module 'react-quill' does not provide an export named 'Quill' #939

Open Ghad1ee2r3 opened 8 months ago

Ghad1ee2r3 commented 8 months ago

I installed react-quill in the remix framework which is built using react and TypeScript but when I tried to import Quill from react-quill, it displayed to me this error

SyntaxError: The requested module 'react-quill' does not provide an export named 'Quill' /Users/ghadeer/Desktop/app/routes/projects+/EditorToolbar.tsx:2 import { Quill } from "react-quill"; ^

SyntaxError: The requested module 'react-quill' does not provide an export named 'Quill' at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21) at ModuleJob.run (node:internal/modules/esm/module_job:189:5) at async Promise.all (index 0) at ESMLoader.import (node:internal/modules/esm/loader:530:24) at file:///Users/ghadeer/Desktop/server/index.ts:1:912

RoniqueRicketts commented 6 months ago

You will have to use ClientOnly from remix-utils/client-only to render this component.