store.gatsbyjs.org: [Browser support] fetch is undefined - missing polyfill?
Just a heads up that the site crashes IE 11 on account of fetch being undefined. As there’s not a browserslist
entry in package.json
my understanding is that Gatsby v2 supports >0.5, not dead
, which should include a fetch polyfill for IE 11 via Babel 7 preset-env
.
Obviously not many Gatsby devs will be using IE as their primary browser but I came across this repo as a reference Shopify implementation so IE support would be great to see.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (13 by maintainers)
@jlengstorf This fetch issue probably could be fixed, but I’m afraid that the UI will not work as we expect in IE11.
@hackily phew! Glad to hear that; I was worried we’d shipped broken code. 😅
@jlengstorf +1 for axios! Simplifies some of the code for fetching, and uses
XMLHttpRequest
under the hood, therefore reducing the need for a polyfill.