export default function Editor({ ...props }) {
return (
<>
</>
)
}
- There you go! You get error `TypeError: _block.getKey is not a function`.
I use Next.js Dynamic Imports because of `window is undefined` error that we get on Next.js by using this library.
react-draft-wysiwyg version: `v1.14.5`
---
Did anyone get it working on Next.js? If yes, please let me know how.
Reproduce the error
const DraftEditor = dynamic( async () => import("react-draft-wysiwyg").then(result => result.Editor), { ssr: false } )
export default function Editor({ ...props }) { return ( <>
) }