Recommendation for @headlessui/react in a monorepo setup #3094
-
I'm trying to use
To my understanding, this is the standard way of structuring dependencies: https://stackoverflow.com/questions/30451556/what-is-the-correct-way-of-adding-react-as-a-dependency-in-the-package-json I want to expose As I do that, I'm getting the following error:
I have a correct hierarchy and a single React version is used and bundled. The issue is that I end up having 2 different React contexts. I understand it's not a I find claims that having "the same version of React (etc. deps)" helps, but it does not. The only thing that helped so far is to have a single |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Rechecked one more time and noticed that I've missed |
Beta Was this translation helpful? Give feedback.
Rechecked one more time and noticed that I've missed
next-app
from the list ofworkspaces
in the rootpackage.json
.After that change (and everything being reinstalled) all related issues are gone.