title: The server responded with a non-JavaScript MIME type of "text/html" - Node
body: <p>I'm getting this error while trying to create/import a <strong>Client</strong> instance to connect to a local DB, (PGADMIN).</p>
  <pre><code>import {Client} from '/node_modules/pg/lib/'
  </code></pre>
  <p><a href="https://i.stack.imgur.com/REPDO.png" rel="nofollow noreferrer">Error</a></p>
  <p><a href="https://i.stack.imgur.com/koobE.png" rel="nofollow noreferrer">My Directory</a></p>
  <p><a href="https://i.stack.imgur.com/Ur8k6.png" rel="nofollow noreferrer">Last part of my index.html</a></p>
  <p>I've tried many types of urls but I can't get it done. So I'm asking for help.</p>
  <p>Also, I've tried: <code>const {Client} = require('pg')</code>, but I get the &quot;<strong>Uncaught ReferenceError: require is not defined&quot;</strong></p>
  <p>Thanks.</p>