Skip to content

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

@fortunateLeopard

Description

@fortunateLeopard

Describe the bug

npm i

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @heroicons/[email protected]
npm error Found: [email protected]
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/[email protected]
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/[email protected]
npm error node_modules/@heroicons/react
npm error   @heroicons/react@"^2.1.5" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error   peer react@">= 16" from @heroicons/[email protected]
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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions