title: Import html-to-draftjs on Nextjs
body: <p>I unable to import html-to-draftjs on my Nextjs Project. If I import it with:</p>
  <pre><code>import htmlToDraft from &quot;html-to-draftjs&quot;
  </code></pre>
  <p>The result will be:</p>
  <p><a href="https://i.stack.imgur.com/FSP4e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FSP4e.png" alt="window is not defined" /></a></p>
  <p>I try to use dynamic import:</p>
  <pre><code>const htmlToDraft = dynamic(
    () =&gt; {
      return import(&quot;html-to-draftjs&quot;);
    },
    { ssr: false }
  );
  </code></pre>
  <p>The result is:
  <a href="https://i.stack.imgur.com/k2GQU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k2GQU.png" alt="htmlToDraftjs is not a function" /></a></p>
  <p><strong>Is there any other import method that I can try? or maybe is there any alternative htmltodraft module that i can use? Thank You!</strong></p>