-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with Next.js 15 and React 19 #778
Comments
Can be fixed by correctly stop bundeling react into the packages, by changing the external option in vite.config to: |
Issue should be fixed with the newest version: 4.5.17 |
Reopening as there seemed to have been some issues with older versions of Next / React with this change 😓 |
Fixed with latest release 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).
The text was updated successfully, but these errors were encountered: