Skip to content

Commit d2126e6 breaks compatibility with React 18 #91

Description

@borisevstratov

Description

After commit d2126e6 (Released in 3.7.2), the project no longer works with React 18 apps.

As a result, installing the latest version now causes dependency conflicts in React 18 environments — which are still widely used and supported.

borisevstratov@MacBook-Pro my-react-18-app % npm i @anaralabs/lector@latest

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: my-react-18-app@0.0.1
npm error Found: react@18.3.1
npm error node_modules/react
npm error   react@"^18.3.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@">=19" from @anaralabs/lector@3.7.2
npm error node_modules/@anaralabs/lector
npm error   @anaralabs/lector@"^3.5.14" 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.

Current workaround

Stick with "@anaralabs/lector": "3.7.1"

Environment:

react: 18.3.1
react-dom: 18.3.1
node: v20.19.0
@anaralabs/lector: 3.7.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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