Open aymeric75 opened 1 year ago
@aymeric75 Thank you for the information. I'll check.
By using Next.js dynamic import you can get around this problem.
// create editor component as README.md says, then...
import dynamic from "next/dynamic";
const ImageEditor = dynamic(() => import("@/components/editor"), {
ssr: false,
loading: () => <p>Loading...</p>,
});
export default function Page() {
return (
<ImageEditor />
)
}
By using Next.js dynamic import you can get around this problem.
// create editor component as README.md says, then... import dynamic from "next/dynamic"; const ImageEditor = dynamic(() => import("@/components/editor"), { ssr: false, loading: () => <p>Loading...</p>, }); export default function Page() { return ( <ImageEditor /> ) }
we are having this issue with Jest testing a React app, how can we solve it?
Describe the bug
This line :
import ImageEditor from '@toast-ui/react-image-editor';
creates this error:
In my NextJs / Typescript project. It's a new fresh project, with no other code added
To Reproduce
Content of my package.json file
Content of my tsconfig.json file :
To be noted, since I am using NextJS which advises to use React 18. I had to
npm i @toast-ui/react-image-editor --force
...Regards