Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 1.03 KB

README.md

File metadata and controls

15 lines (8 loc) · 1.03 KB

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.