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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE (Internet Explorer) Error 馃挬 #473
Comments
TEMPORARY HACK. To work around this until it's fixed you can add the
|
Here's the source of the issue: threepointone/glamor#155 |
I think polyfills should be added manually if the dev needs to support old browsers |
@luisrudge actually it's a problem of glamor. It's not doing babel transpiling properly. |
@luisrudge I agree with @arunoda. |
@philcockfield I already send a PR for glamor and I hope they'll accept it and cut a new release. |
Rock and roll @arunoda! Awesome 馃挴 |
- fixes vercel#473 - this polyfill is very small as compared to alternatives - just need to add it as a plugin in babel
@arunoda next.js is using Object.assign. It's under the utils function https://github.com/zeit/next.js/blob/master/lib/utils.js#L20, the #513 fixes this with just adding a simple transform. I do believe this fix #513 is better instead of adding the whole babel-polyfill as a dependency. babel-polyfill is actually pretty big, and adding that should be on the userland instead of the library. This same fix applies in glamor, instead of adding babel-polyfill, its better to add this transform. |
@thisguychris yes Next.js uses Object.assign and many other ES2015+ features. Check the transpiled code of the above mentioned utils.js So, the issue is not in the Next.js code base and our use of babel-runtime is pretty efficient. If glamor didn't fix this issue, we may need to hot fix it. |
@arunoda oh that's good to know! looks like they fixed it in v6 and up, Our app is still in v5 馃槀 |
Guys, now glamor has a fix for this issue. But Next.js apps only work on IE9+ versions only. |
I hope we could close this now. |
馃憤 |
Running a simple page that references nothing other than React within Next.js on IE9...11 causes the following error:
This occurs with both next.js version
1.2.3
and2.0.0-beta.0
.An example of this on IE9 can be seen here (courtesy of @arunoda):
https://www.browserling.com/browse/win/vista/ie/9/https%3A%2F%2F37a02b6c.ngrok.io%2Fabout
The code which is throwing the error seems related to stylesheets:
Object.assign
is not in ES5 and so this is perhaps a babel related problem where an external library has been referenced that has not been transpiled.This will not be showing up as an error in Chrome/Firefox (and all the other "big boy browsers") as they have started to implement some of the ES6 spec natively.
The text was updated successfully, but these errors were encountered: