在React Native应用程序中添加节点模块isomorphic-fetch(版本:^2.2.1)后,我收到Can't find variable: self错误。该错误是从位于node_modules >同构-获取> fetch-npm-browserify.js的文件中抛出的。// on the g
我编写了一个API包装器,它使用fetch来执行API请求。由于我希望该模块与浏览器、Node和Reactive原住民兼容,所以我使用。对它进行测试,它就能很好地工作,但是如果我在React中使用包装器,就会出现以下错误:TypeError: undefined is not a function (evaluating 'cross_fetch如果我打印cross_fetch_1的类型,我会得到: polyfill: true,
Response: { [Function: Response]