You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The template now uses prettier v3 (#930) and includes eslint-plugin-ft-flow (#932). Both changes are in create-react-native-library@0.58.0. eslint-plugin-react-native comes from @react-native/eslint-config, so with npm it's available without adding it to devDependencies.
Closing this since it's fixed in the latest version. You can create a new library with npx create-react-native-library@latest. If you still run into missing dependencies, please open a new issue with the steps to reproduce.
Activity
satya164 commentedon Oct 21, 2026
The template now uses prettier v3 (#930) and includes
eslint-plugin-ft-flow(#932). Both changes are in create-react-native-library@0.58.0.eslint-plugin-react-nativecomes from@react-native/eslint-config, so with npm it's available without adding it todevDependencies.Closing this since it's fixed in the latest version. You can create a new library with
npx create-react-native-library@latest. If you still run into missing dependencies, please open a new issue with the steps to reproduce.