Open SofianeDjellouli opened 2 years ago
Hi,
When I try to import the default export of cross-fetch I get this warning from Webpack:
cross-fetch
"export 'default' (imported as 'fetch') was not found in 'cross-fetch'
I get the same kind of warning when trying to import the named import "fetch".
After that I get this error on the browser:
ReferenceError: exports is not defined
However, it works as a polyfill (import 'cross-fetch/polyfill').
import 'cross-fetch/polyfill'
Hi,
When I try to import the default export of
cross-fetch
I get this warning from Webpack:I get the same kind of warning when trying to import the named import "fetch".
After that I get this error on the browser:
However, it works as a polyfill (
import 'cross-fetch/polyfill'
).