-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Safari unable to load generated pages #264
Comments
Safari 8.0 doesn't support Object.assign(), and babel uses it all over the place when transforming JSX. You're going to have to polyfill it. Here's one of the easier ways to do so. npm install --save babel-plugin-transform-object-assign // .babelrc
{
"presets": ['react', 'es2015', 'stage-0'],
"plugins": [
'transform-object-rest-spread',
'transform-object-assign'
]
} |
Hmmm... perhaps we should just add this plugin to the starters given there's a decent % of browsers in use that don't support Object.assign yet like Safari 8. |
Sounds good. |
benstepp
added a commit
to benstepp/gatsby
that referenced
this issue
May 8, 2016
This is done to support older browsers. Fixes gatsbyjs#264
Fixed in #279 and released in 0.11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps this is expected, but I'll mention it anyway...
The
index.js
created bygatsby new ...
doesn't load on Safari 8.0.5 (OS X 10.10.3).To replicate:
When loading
http://0.0.0.0:8000
Safari just shows a blank page and reports the following errors in the console:The text was updated successfully, but these errors were encountered: