How can I use heroui
and react-aria-components
in the same project?
#7702
-
My project use both It seems that Here is a issue about different version of dependencies here So I got How can I solve it? I'm newly in frontend, and I try override in
But it not work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Looks like So I'm not sure how you're seeing that
It appears as though heroui doesn't allow range dependencies, which will make it easy to accidentally install duplicates https://github.com/heroui-inc/heroui/blob/canary/packages/components/button/package.json You'll need to manually resolve them to a single version or use a tool like yarn dedupe (I don't know the npm options off the top of my head). Using overrides is the manual way of doing it, and the docs for the syntax are here https://docs.npmjs.com/cli/v11/configuring-npm/package-json#overrides see the first example
|
Beta Was this translation helpful? Give feedback.
yeah, heroui is doing you no favors for this, you should log an issue with them to accept a range
otherwise, you need to determine what to resolve each of those versions to in your overrides