-
Notifications
You must be signed in to change notification settings - Fork 100
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
Doesn't work with browser es module loading #46
Labels
Comments
I'm having the same issue when using graphql-request with @web/dev-server The error I'm seeing is
import crossFetch, * as CrossFetch from './../../../cross-fetch/dist/browser-ponyfill.js'; // error here in /node_modules/graphql-request/build/esm/index.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used
polymer
to bundle the code, it will load thenode-ponyfill.js
I know this is maybe not the intention with the library, it can just be confusing for new beginners that want to use a library that does backsupport old browser while at the same time uses just fetch with the new es module loading.
https://github.com/kevinsimper/cross-fetch-esm-test
https://cross-fetch-es-module.surge.sh/
https://github.com/Polymer/tools/tree/master/packages/cli
The text was updated successfully, but these errors were encountered: