Skip to content
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

[v2][IE11] Gatsby develop doesn't work properly in IE11. #8522

Closed
rtm619 opened this issue Sep 25, 2018 · 9 comments
Closed

[v2][IE11] Gatsby develop doesn't work properly in IE11. #8522

rtm619 opened this issue Sep 25, 2018 · 9 comments
Labels
status: awaiting author response Additional information has been requested from the author type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@rtm619
Copy link

rtm619 commented Sep 25, 2018

Description

Gatsby develop doesn't work properly in IE 11. I tried to include polyfills, but its throwing errors like "Promise is undefined", "Objects are not supported as react children", etc. I have added the .babelrc configuration from gatsby docs.

Steps to reproduce

https://github.com/rtm619/gatsby-IE-demo

Please clone the above repo and check in IE11.

Expected result

Gatsby develop should work in IE11.

Actual result

Gatsby develop throws an error.

@kakadiadarpan
Copy link
Contributor

@rtm619 can you try adding IE 11 to browsers in targets?

https://github.com/rtm619/gatsby-IE-demo/blob/master/.babelrc#L10

@kakadiadarpan kakadiadarpan added type: question or discussion Issue discussing or asking a question about Gatsby status: awaiting author response Additional information has been requested from the author labels Sep 25, 2018
@rtm619
Copy link
Author

rtm619 commented Sep 25, 2018

@kakadiadarpan Tried it, doesn't work.

@sarahannnicholson
Copy link
Contributor

@rtm619 is it similar to this issue? #7003

I believe its being worked on by the Gatsby team

@rtm619
Copy link
Author

rtm619 commented Sep 27, 2018

@sarahannnicholson Yeah, same issue. I added Babel Polyfill in gatsby-browser and changed preset-env's builtIns to "entry" and then, IE 11 works in develop. But in my actual project, I get the same "promise is undefined" or Expected ":" or other errors in IE11 after gatsby build. I'll close this one.

@rtm619 rtm619 closed this as completed Sep 27, 2018
@rtm619
Copy link
Author

rtm619 commented Oct 3, 2018

@KyleAMathews Based on the comments of original issue #7003 , --no-uglify resolves the IE11 build issue. Can you take a look at it once?

@rtm619 rtm619 reopened this Oct 3, 2018
@lfurzewaddock
Copy link
Contributor

This resolved my production issues (not development) for IE11: #7003 (comment)

@abumalick
Copy link
Contributor

@rtm619 I think this issue was fixed for you with #7003 (comment) right ?

@rtm619
Copy link
Author

rtm619 commented Oct 24, 2018

@abumalick Yes. i'll close it now

@rtm619 rtm619 closed this as completed Oct 24, 2018
@glueCod
Copy link

glueCod commented Apr 22, 2020

@rtm619 hey man i am now facing with that issue. Could tell how did you solve your issue?. The Gatsby project in IE11 rendered as a blank page. May you help to come up with it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting author response Additional information has been requested from the author type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

6 participants