title: Module not found: Can't resolve 'fs' - NextJS
body: <p>I'm trying to use node-jsencrypt with NextJS (tsx):</p>
  <p>index.tsx</p>
  <pre><code>import JSEncrypt from 'node-jsencrypt';
  </code></pre>
  <p>package.json</p>
  <pre><code>&quot;node-jsencrypt&quot;: &quot;^1.0.0&quot;
  </code></pre>
  <p>Log</p>
  <blockquote>
  <p>error - ./node_modules/node-jsencrypt/index.js:2:0</p>
  <p>Module not found: Can't resolve 'fs'</p>
  </blockquote>
  <p>Notes:
  I didn't find the <code>'webpack.config.js'</code> file, as I saw in some topics.</p>