Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Compatibility with React 18 and Missing TypeScript Types #87

@ranyakhemiri

Description

@ranyakhemiri

Description:
I'm currently using react-image-annotation in a project that has been upgraded to React 18. However, I'm facing compatibility issues with React 18 and I'm also missing TypeScript types for the package.

Expected Behavior:
react-image-annotation should be compatible with React 18 since it is compatible with React 16 or higher.

Actual Behavior:
The package throws errors related to compatibility with React 18 and does not provide TypeScript types, which makes it challenging to use in a TypeScript project with React 18.

Error Messages:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@">= 16.14.0" from @aws-amplify/[email protected]
npm ERR!   node_modules/@aws-amplify/ui-react
npm ERR!     @aws-amplify/ui-react@"^4.6.1" from the root project
npm ERR!   peer react@">= 16.14.0" from @aws-amplify/[email protected]
npm ERR!   node_modules/@aws-amplify/ui-react-core
npm ERR!     @aws-amplify/ui-react-core@"2.1.20" from @aws-amplify/[email protected]
npm ERR!     node_modules/@aws-amplify/ui-react
npm ERR!       @aws-amplify/ui-react@"^4.6.1" from the root project
npm ERR!   50 more (@xstate/react, @floating-ui/react-dom, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3" from [email protected]
npm ERR! node_modules/react-image-annotation
npm ERR!   react-image-annotation@"^0.9.10" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^16.3" from [email protected]
npm ERR!   node_modules/react-image-annotation
npm ERR!     react-image-annotation@"^0.9.10" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions