loler
loler

Reputation: 1

Trying to set up react for a mobile app but running into error

I am trying to make an app for the first time in vscode and while following the intructions for react, when i used the command npx create-react-app my-app this is what came up.

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
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 @testing-library/[email protected]
npm error node_modules/@testing-library/react
npm error   @testing-library/react@"^13.0.0" 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.

I am trying to get the code to connect to my vscode so that i can use Expo go to test out my mobile app

Upvotes: 0

Views: 44

Answers (0)

Related Questions