Skip to content

Peer Dependency Conflicts with React 19 #2

@matthewbrutonall

Description

@matthewbrutonall

Summary

The package.json for @canopy-iiif/app allows React 19 (^18.2.0 || ^19.0.0), but installing it causes significant peer
dependency conflicts because the core UI library (@samvera/clover-iiif) relies on Radix UI packages that do not yet support
React 19.

Details

Running npm install with React 19 results in numerous ERESOLVE overriding peer dependency warnings or errors.
Specifically, @radix-ui/react-form, @radix-ui/react-context, and others require react@^16.8 || ^17.0 || ^18.0.Impact
Users attempting to use the latest React version (as allowed by the peer deps) will encounter broken UI components or build failures unless they force unstable dependency resolutions.

Recommendation

Restrict the peerDependencies in @canopy-iiif/app to react@^18.2.0 until @samvera/clover-iiif and its Radix UI
dependencies are updated to support React 19.

Metadata

Metadata

Assignees

No one assigned

    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