callstack / callstack/react-native-builder-bob

Doesn't work with NPM

Đang mở
#919 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
JavaScript
Star
3.2k
Fork
228
Merge trung bình
7 ngày 12 giờ
Pull request đã merge (30 ngày)
3

Mô tả

### Description

I created a new JS library (I've pick the last option, since I don't need to access native API). And after npm install got this error:

```
$ npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: react-native-awesome-library@0.1.0
npm error Found: prettier@2.8.8
npm error node_modules/prettier
npm error dev prettier@"^2.8.8" from the root project
npm error
npm error Could not resolve dependency:
npm error peer prettier@">=3.0.0" from eslint-plugin-prettier@5.5.4
npm error node_modules/eslint-plugin-prettier
npm error dev eslint-plugin-prettier@"^5.5.4" 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.
npm error
npm error
npm error For a full report see:
npm error /home/kuba/.npm/_logs/2025-12-25T18_24_12_883Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/kuba/.npm/_logs/2025-12-25T18_24_12_883Z-debug-0.log
```

You need to run:

```bash
npm install -D prettier@latest
npm install
```

When you run `npm run lint`, you have two missign dependenices:

* eslint-plugin-ft-flow
* eslint-plugin-react-native

that you need to install.

I'm using `npx create-react-native-library@latest` version 0.56.0.

### Packages

- [x] create-react-native-library
- [ ] react-native-builder-bob

### Selected options

N/A

### Link to repro

https://github.com/jcubic/awesome-library

### Environment

N/A

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by reproducing the reported npm install and npm run lint failures in the linked awesome-library reproduction, then inspect the generated package's dependency setup from create-react-native-library version 0.56.0. Done means a newly generated library installs successfully and lint runs without manually installing Prettier or the two missing ESLint plugins.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, react-native
Lĩnh vực
build-system, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.