You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading to next.js 15 with the minimum version of react and react-dom that is now 19 I get a peer dependency error that breaks the upgrade. headlessui requires react 18.
The text was updated successfully, but these errors were encountered:
I couldn't wait, so I went ahead and refactored all the components I had access to. As we know, element.ref access has been removed in React 19, and refs should now be treated as regular props. The stack trace points specifically to some @headlessui/react components, and while I've tackled most of them, there are still two left to refactor regarding this if not mistaking:
What package within Headless UI are you using?
What version of that package are you using?
@headlessui/react: "^2.1.10"
Describe your issue
Upgrading to next.js 15 with the minimum version of react and react-dom that is now 19 I get a peer dependency error that breaks the upgrade. headlessui requires react 18.
The text was updated successfully, but these errors were encountered: