Next.js: SSG doesn't work for IE10

Created on 19 Feb 2020  路  3Comments  路  Source: vercel/next.js

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.

Most helpful comment

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

All 3 comments

Fixed in next@^9.2.3-canary.4!

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

Thank you very much

Was this page helpful?
0 / 5 - 0 ratings