Open misogl opened 8 years ago
Seeing the same issue when using with React Native's packager
I'm playing catch-up here, but what was the point of removing isomorphic-fetch
? I'm getting this same issue with a standard isomorphic webpack build
Any update on this?
Same here. Is the project dying out? @arunoda
The solution is comment these lines on node_modules/lokka-transport-http/dist/index.js
if (typeof fetch === 'function') { // has a native fetch implementation fetchUrl = fetch; } /else if (isNode()) { // for Node.js fetchUrl = require('node-fetch'); fetchUrl.Promise = _promise2.default; } else { // for the browser require('whatwg-fetch'); fetchUrl = fetch; }/
In version 1.4 you have removed the use of
isomorphic-fetch
. This however causes problem in webpack, as it now tries to build the app with bothwhatwg-fetch
andnode-fetch
, which fails.A possible workaround for this issue would be to configure webpack so it uses something like a
null-loader
fornode-fetch
, but I consider this more like a hack than a real solution.