节点14导致graphqljs的未知问题 [英] node 14 causing unknown issues for graphqljs

查看:41
本文介绍了节点14导致graphqljs的未知问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我最近尝试将节点从13升级到14,但是后来我遇到了graphql的问题.

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.

我想知道从13升级到14时是否有人对graphql有任何疑问.

I'm wondering if anyone has had any issues with graphql when upgrading from 13 to 14.

使用的包裹:

  • express-graphql
  • graphql
  • graphql-iso-date
  • graphql-query-builder-v2
  • graphql-type-json
  • graphql上传

如果节点14和这两个graphql程序包没有任何问题,请告诉我,因为是其他引起问题的程序包.谢谢.

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.

我当前的解决方案是降级节点(我目前在节点12上,因为brew似乎还没有节点13).

My current solution is to downgrade node (I'm currently on node 12 since brew doesn't seem to have node 13 yet).

推荐答案

有一个已知的 pg 模块和NodeJS 14中的> issue .由于 pg-promise 也使用此模块-我怀疑这是问题所在.

There is a known issue in the pg module and NodeJS 14. Since pg-promise also uses this module - I suspect this is the problem.

建议的解决方案是确保已安装 pg> = 8.0.3 .

The proposed solution is to make sure you have pg>=8.0.3 installed.

这可以通过

  • 更新为 pg-promise> = 10.5.2 ,该版本已将更新的 pg 模块作为依赖项和/或
  • 如果明确指定,则
  • 在依赖项中更新为 pg> = 8.0.3 .
  • updating to pg-promise>=10.5.2 which already has the updated pg module as a dependency and/or
  • updating to pg>=8.0.3 in the dependencies if explicitly specified.

还要确保其他依赖于 pg 的库都是最新的.

Also make sure that any other library depending on pg is up to date.

这篇关于节点14导致graphqljs的未知问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆