Home > database >  unable to make a package run in nextjs which is working in reactjs
unable to make a package run in nextjs which is working in reactjs

Time:11-15

enter image description here

CodePudding user response:

Most of the editors need to run on browser, try to import Editor component on client side only. Documentaion

In your page file:

import dynamic from 'next/dynamic'

const Editor= dynamic(
  () => import('../components/Editor'), //Editor component path
  { ssr: false }
)
  • Related