I'm using Remix with Pages, and I have a few issues. When I use the `pg` package, I get the errors

I'm using Remix with Pages, and I have a few issues.

When I use the
pg
package, I get the errors:

 [ERROR] Could not resolve "dns"ng --force Recommended protections disabled.

    node_modules/pg/lib/connection-parameters.js:3:18:
      3 │ var dns = require('dns')
        ╵                   ~~~~~

  The package "dns" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


✘ [ERROR] Could not resolve "net"

    node_modules/pg/lib/connection.js:3:18:
      3 │ var net = require('net')
        ╵                   ~~~~~

  The package "net" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.


✘ [ERROR] Could not resolve "net"

etc...
Was this page helpful?