Skip to content

NextJS 15 incompatibility #476

@heshamsaqqar

Description

@heshamsaqqar
  • pure-react-carousel version: 1.32.0
  • node version: 22.12.0
  • react version: 19.x or 18.x
  • nextJS version: 15

What I did:

In my private project, I upgraded from Next.js 14 to Next.js 15 and tested with both React 18 and React 19, but encountered the same issue in both cases.

What happened:

All pages using the carousel component crashed, displaying the following error message:
RangeError: Maximum call stack size exceeded

Reproduction:

You can reproduce the issue with the following testing repository:
https://github.com/heshamsaqqar/pure-carousel-app

Problem description:

After upgrading the framework, the library stopped working completely, regardless of whether I used React 18 or 19. Was working fine before with Next 14 & React 18.

Any advice would be greatly appreciated!

Thanks.

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