Skip to content

Minimal repository that shows that contentful client creates an error on iPhone 6 iOS 12.5.7 when using pages router in Next.js

Notifications You must be signed in to change notification settings

reekrd/contentful-test

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

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.js

When used in the App router there is no error.

Connect iPhone to Safari Technology Preview

Go to https://contentful-test-sepia.vercel.app/ and check the console on your phone in Safari Technology Preview.

The homepage uses the App router and no error is logged. Click the link Go to the pages router (or open here)

The console now throws SyntaxError: Unexpected token ';'. Expected an opening '(' before a method's parameter list.

Alternatively clone this repo. Install locally and connect to your localhost using ngrok or a similar service.

About

Minimal repository that shows that contentful client creates an error on iPhone 6 iOS 12.5.7 when using pages router in Next.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published