So I recently tried upgrading my node from 13 to 14, but afterwards I was having issues with graphql.
What happened was that I was forever "pending" whenever I sent a request to the server. The problem is, there's no errors being thrown.
I'm wondering if anyone has had any issues with graphql when upgrading from 13 to 14.
Packages used:
- express-graphql
- graphql
- graphql-iso-date
- graphql-query-builder-v2
- graphql-type-json
- graphql-upload
If you don't have any problems with node 14 and these two graphql packages, please let me know, as it's then other packages that are causing the issue. Thanks.
My current solution is to downgrade node (I'm currently on node 12 since brew doesn't seem to have node 13 yet).
pg-promise
, set the dependency to"pg-promise">=10.5.2
, removenode_modules
and do fresh install of dependencies. That should fix it for you once and for all. Also see my comment to the answer bymadflow
. – Brittaneybrittanipg
. I'm pretty sure it's a dependency, so it's being used somewhere. Updating it fixed the perpetual pending. – Cystineconnect-simple-pg
, so I think that was the main culprit. – Cystinepg
is used somewhere else in your project, directly, outsidepg-promise
, then yes, sure, you would have to setpg>=8.0.3
, but if you only usepg-promise
as a dependency in your project, then setting it to the right version and reinstalling will suffice. – Brittaneybrittaniconnect-simple-pg
, yes, that would cause the problem, and you indeed would have to force the version ofpg
by setting it explicitly. – Brittaneybrittani