gatsby: gatsby new site from template don't work on ie 10

Description

A fresh new site crashes on ie 10 because ‘Set’ (used in react-dom) is not polyfilled.

Steps to reproduce

open https://gatsby-freshinstall.netlify.com with ie10

(source: https://github.com/abumalick/gatsby-freshinstall )

or:

  • create a new site with gatsby-cli
  • deploy to netlify
  • test deploy link with ie10

Expected result

javascript should load without error

(a polyfill should be included automatically by babel-env ?)

Actual result

‘Set is undefined’: image

this is a screenshot of sentry from another project, tested with ie10 windows 7 on browserstack: image

Other notes

I had a similar problem with redux-form including a polyfill for string.prototype.startsWith fixed the problem. ref: https://github.com/erikras/redux-form/issues/4126

I will add a polyfill for Set to my projects until this is fixed in gatsby.

Environment

(I am testing with browserstack)

gatsby info --clipboard

  System:
    OS: macOS High Sierra 10.13.6
    CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
    Yarn: 1.10.1 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
  Browsers:
    Chrome: 70.0.3538.67
    Firefox: 62.0.3
    Safari: 12.0
  npmPackages:
    gatsby: ^2.0.19 => 2.0.29
    gatsby-image: ^2.0.15 => 2.0.16
    gatsby-plugin-manifest: ^2.0.5 => 2.0.5
    gatsby-plugin-offline: ^2.0.5 => 2.0.8
    gatsby-plugin-react-helmet: ^3.0.0 => 3.0.0
    gatsby-plugin-sharp: ^2.0.7 => 2.0.7
    gatsby-source-filesystem: ^2.0.4 => 2.0.5
    gatsby-transformer-sharp: ^2.1.4 => 2.1.4

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

This issue still exists with current versions

Having the same issue, has there been any other developments in regards to fixing this issue?