Commit d2126e6 breaks compatibility with React 18
- Ngôn ngữ chính
- TypeScript
- Star
- 395
- Fork
- 39
- Merge trung bình
- 7 giờ 7 phút
- Pull request đã merge (30 ngày)
- 12
Mô tả
### Description
After commit d2126e6 (Released in [3.7.2](https://github.com/anaralabs/lector/releases/tag/v3.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.
```bash
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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.