title: Uncaught ReferenceError: Buffer is not defined in React
body: <p>If I add the following lines into my code it throws the following error:</p>
  <pre><code>import { BIP32Interface } from &quot;bip32&quot;;
  
  let node: BIP32Interface = bip32.fromBase58(key);
  </code></pre>
  <p>Error:</p>
  <pre><code>Uncaught ReferenceError: Buffer is not defined
  </code></pre>
  <p>I'm using the same package in a Next.js app, so I think the problem here, that I haven't got node.js environment when compiling happens...</p>
  <p>How could I pass this issue?</p>
  <p>I tried:
  yarn add buffer -&gt;</p>
  <pre><code>window.Buffer = window.Buffer || require(&quot;buffer&quot;).Buffer;
  </code></pre>
  <p>Any ideas?</p>