Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack warning: "export 'default' (imported as 'fetch') was not found in 'cross-fetch' #127

Open
SofianeDjellouli opened this issue Jan 27, 2022 · 0 comments
Labels

Comments

@SofianeDjellouli
Copy link

SofianeDjellouli commented Jan 27, 2022

Hi,

When I try to import the default export of cross-fetch I get this warning from Webpack:

"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').

@lquixada lquixada added the esm label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants