【问题标题】:node-fetch error when importing lokka-transport-http in react-native在 react-native 中导入 lokka-transport-http 时节点获取错误
【发布时间】:2017-06-04 20:45:55
【问题描述】:

我正在尝试在我的react-native 应用程序中使用Lokka 作为graphql 的客户端。我按照非常基本的说明进行操作,但在导入模块 lokka-transport-http 时出现错误:

const Transport = require('lokka-transport-http').Transport;

确切的错误信息:

UnableToResolveError: Unable to resolve module url from /Users/xxx/xxx/xxx/node_modules/node-fetch/index.js: Module does not exist in the module map or in these directories:
  /Users/xxx/xxx/xxx/node_modules

【问题讨论】:

    标签: react-native graphql


    【解决方案1】:

    package.json 中更改为旧版本将解决一些幸运儿的问题。

    "lokka": "^1.7.0",
    "lokka-transport-http": "1.3.2",
    

    更多信息请访问https://github.com/kadirahq/lokka/issues/19

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-14
      • 1970-01-01
      • 2021-11-09
      • 2019-07-12
      • 2021-09-08
      • 2021-03-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多