here is the version
“@builder.io/sdk-react-native”: “^4.2.2”
here is the error when installing:
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: fuelin@0.0.1
npm error Found: react@19.0.0
npm error node_modules/react
npm error react@"19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.0.0" from @builder.io/sdk-react-native@4.2.2
Hi xenovia12,
The error you’re seeing means that @builder.io/sdk-react-native@4.2.2
expects react@^18
, but your project is using React 19.0.0.
Solutions
Option 1: Downgrade React to v18
If you don’t need React 19, the safest fix is:
npm install react@18 react-dom@18
This will satisfy @builder.io/sdk-react-native
.
Option 2: Use --legacy-peer-deps
(Not recommended for production)
This tells npm to ignore peer dependency conflicts, but it can lead to runtime bugs:
npm install --legacy-peer-deps
Use this only if you’re aware of compatibility risks.
Thanks,