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

SSG doesn't work for IE10 #10587

Closed
khades opened this issue Feb 19, 2020 · 4 comments · Fixed by #10591
Closed

SSG doesn't work for IE10 #10587

khades opened this issue Feb 19, 2020 · 4 comments · Fixed by #10591

Comments

@khades
Copy link
Contributor

khades commented Feb 19, 2020

Bug report

Sites that use unstable_getServerProps doesn't hydrate, stating unknown keyword "const".

Describe the bug

While transpiling code with unstable_getServerProps, next-ssg-transpile adds "const" declaration
https://github.com/zeit/next.js/blob/082cc68d87854034e95db371af32717d83bad2f6/packages/next/build/babel/plugins/next-ssg-transform.ts#L45

To Reproduce

Build any page with unstable_getServerProps, open it with IE10.

Expected behavior

There's no const, but var instead.

@Timer
Copy link
Member

Timer commented Feb 19, 2020

Fixed in next@^9.2.3-canary.4!

@timneutkens
Copy link
Member

Just to be clear Next.js doesn't officially support IE10. Only IE11

@khades
Copy link
Contributor Author

khades commented Feb 20, 2020

Thank you very much

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants