`pg` < 8 causes node 14+ to crash
See original GitHub issueIssue type:
[ ] question [x] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql
/ mariadb
[ ] oracle
[x] postgres
[ ] cockroachdb
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo
TypeORM version:
[x] latest
[ ] @next
[ ] 0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem:
Today, homebrew updated my Mac to Node 14. My typeorm code immediately stopped working, and watching Little Snitch (extra firewall), I could see that node was not connecting in any way to the Postgres server. Dropping back to node 12 solved the issue.
I tried rebuilding the node_modules
directory.
Anything else I can do to fix this locally?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:25
- Comments:22 (3 by maintainers)
Top Results From Across the Web
How to prevent your Node.js process from crashing - Medium
The stream closes unexpectedly and… your Node. js process crashes and all the users of your app get errors.
Read more >Node lessons learned painfully (or why my site crashed)
For folks curious, my bug was rather simple. The code that handled loading a page by the SES token (what you see in...
Read more >node server crashes #9314 - Asp.Net Zero Support
node server crashes as soon as home page is displayed. C:\Users\Tim\Documents\__ngTTMv800\angular\node_modules\webpack-dev-server\lib\servers\ ...
Read more >Solving common issues with node-gyp - LogRocket Blog
Many node-gyp issues are actually issues with the toolchain used for building add-on code. We'll categorize these issues to offer solutions.
Read more >Errors | Node.js v19.3.0 Documentation
<anonymous> (/home/gbusey/actors.js:400:8) at increaseSynergy ... Such exceptions will always cause the Node.js process to crash.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh, bumping to
pg@8.0.3
looks like it fixes it!I can confirm this too. Program exits with code 0 during
createConnection
. Downgrading to Node 12 has fixed it for me too.