Skip to content
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

Catalyst components use @heroicons/react which does not yet support 19.0.0-rc-* #1647

Closed
fortunateLeopard opened this issue Nov 18, 2024 · 2 comments · Fixed by tailwindlabs/heroicons#1247
Assignees

Comments

@fortunateLeopard
Copy link

Describe the bug

npm i

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @heroicons/react@2.1.5
npm error Found: react@19.0.0-rc-69d4b800-20241021
npm error node_modules/react
npm error   react@"19.0.0-rc-69d4b800-20241021" from the root project
npm error   peer react@"^18 || ^19 || ^19.0.0-rc" from @headlessui/react@2.2.0
npm error   node_modules/@headlessui/react
npm error     @headlessui/react@"^2.2.0" from the root project
npm error   73 more (@radix-ui/react-accordion, @radix-ui/react-context, ...)
npm error
npm error Could not resolve dependency:
npm error peer react@">= 16" from @heroicons/react@2.1.5
npm error node_modules/@heroicons/react
npm error   @heroicons/react@"^2.1.5" from the root project
npm error
npm error Conflicting peer dependency: react@18.3.1
npm error node_modules/react
npm error   peer react@">= 16" from @heroicons/react@2.1.5
npm error   node_modules/@heroicons/react
npm error     @heroicons/react@"^2.1.5" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to React 19
  2. Try to run npm i
  3. See error

Expected behavior
@heroicons/react needs to be updated to support React 19 asap.

@reinink
Copy link
Member

reinink commented Nov 18, 2024

Hey good catch! We've just added React 19 support in #1247 and will get a new release cut shortly 👍

@reinink
Copy link
Member

reinink commented Nov 18, 2024

Hey just another update on this—we've got the release out. You can now install the latest version of Heroicons in a React 19 project without having to use "force":

npm install @heroicons/react@latest

Let me know if you run into any issues! 👍

@reinink reinink self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants