-
Notifications
You must be signed in to change notification settings - Fork 200
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
Contentful throws error on iPhone 6 iOS 12.5.7 when using Next.js Pages router #2131
Comments
Similar to #1901 I fixed this for us by not having any client-side calls to Contentful, and doing everything in getStaticProps and passing down the response via props. If you have deeply nested references, you will want to make sure you use the |
@wadehammes thanks for the tip. |
While is also suggest to avoid client side calls to Contentful if you can avoid: The new v11 should also fix the iOS 12.5.7 issue. Unfortunately, I cant simulate that old phone nor have it available physically. if anyone could test if the issue is gone with v11.. I would be very thankful! |
Contentful throws
SyntaxError: Unexpected token ';'. Expected an opening '(' before a method's parameter list.
on iPhone 6 iOS 12.5.7 when used in the Pages router in Next.jsHowever the error does not occur when using the App router (as it runs in a server component).
Version 9.3.5 of the contentful client works as expected.
Steps to Reproduce
Here is a minimal repo: https://github.com/reekrd/contentful-test
The text was updated successfully, but these errors were encountered: