【问题标题】:Graphql error when building react-native app构建 react-native 应用程序时出现 Graphql 错误
【发布时间】:2020-06-10 13:03:13
【问题描述】:

当我尝试使用 npm run android 我的 react 本机应用程序时,我在节点上收到此错误

无法从 “node_modules/graphql/error/index.js

该错误仅在尝试导入任何需要 Graphql 的库时发生。 Graphql 已安装,我已多次卸载并重新安装我的 node_modules 试图解决此问题,但没有任何效果。任何帮助,将不胜感激。

【问题讨论】:

  • node_modules/graphql/error/printError.js 路径下是否有文件?

标签: react-native graphql apollo


【解决方案1】:

printError 添加了 v0.12.0。 Apollo 至少需要 v14.5.4。您可以使用npm install graphql@latest 安装最新版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-25
    • 1970-01-01
    • 1970-01-01
    • 2018-01-16
    • 1970-01-01
    • 1970-01-01
    • 2022-11-10
    • 1970-01-01
    相关资源
    最近更新 更多