Skip to content

Contentful throws error on iPhone 6 iOS 12.5.7 when using Next.js Pages router #2131

@reekrd

Description

@reekrd

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

However 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions