Describe the bug@contentful/live-preview throws an error in Next.js 15 (RC) and React 19 (RC).
To Reproduce
Steps to reproduce the behavior:
Setup project with Next.js version 15 with React 19
Follow @contentful/live-preview docs for Next.js integration
Run npm run dev to run dev server
See error TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
Expected behavior
It works.
Context (please complete the following information):
Live preview SDK version number: 4.2.3
Additional context
@contentful/live-preview limits React's version to 18.
I built the package locally after removing this restriction and the error is gone (but I didn't test it in-and-out).
Describe the bug
@contentful/live-preview
throws an error in Next.js 15 (RC) and React 19 (RC).To Reproduce Steps to reproduce the behavior:
npm run dev
to run dev serverTypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
Expected behavior It works.
Context (please complete the following information):
Additional context @contentful/live-preview limits React's version to 18. I built the package locally after removing this restriction and the error is gone (but I didn't test it in-and-out).