brianc / node-postgres-docs

Documentation for node-postgres
https://node-postgres.com
MIT License
97 stars 94 forks source link

Uncaught reference error : process is not defined #178

Closed fibag21 closed 2 years ago

fibag21 commented 2 years ago

Hi,

I'm trying to use pg to connect to and query a PostgreSQL DB. Using a node.js environment. upon loading the page in the browser, I receive this "uncaught reference error : process is not defined" in pg/lib/defaults.js on line 8.

Package built with yarn,

Any hint ? Thanks

charmander commented 2 years ago

Sounds like your code is running in a browser environment instead of a Node.js environment. It’s not really possible to say without details, but it’s not a pg-side issue anyway.