-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Not working in IE11 becuase In library you are using node-fetch module which does not work in ie11 so please include
require('es6-promise').polyfill();
require('isomorphic-fetch');
top of your code.
Cause of issue: inside node-fetch
var getGlobal = function () {
// the only reliable means to get the global object is
// Function('return this')()
// However, this causes CSP violations in Chrome apps.
if (typeof self !== 'undefined') { console.log('self', self.fetch); return self; }
if (typeof window !== 'undefined') { console.log('window'); return window; }
if (typeof global !== 'undefined') { return global; }
throw new Error('unable to locate global object');
}
var global = getGlobal();
console.log('global', global);
module.exports = exports = global.fetch;
exports.default = global.fetch.bind(global); this line throw exception becuase fetch is undefined in ie11