react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

Cant install it

Open chkmls opened this issue 4 years ago • 4 comments

The problem I cant install it on react native project. creating new react native project with npx react-native init myapp and then npm install react-dom react-native-web raise errors of conflicts. The error

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.2.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR!   react-dom@"^18.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

running with force i manged to install but the web app wont run, and any ther npm install raise above error.

How to reproduce My os :windows 10 nodejs: lts npx react-native init myapp npm install react-dom react-native-web

There's a way to install it? Thanks and sorry for my English.

chkmls avatar Jun 22 '22 17:06 chkmls

image

thorvald-man avatar Jun 23 '22 11:06 thorvald-man

I tried that but than i got many errors when installing other modules like navigation. Maybe there is a tutorial or ready to use template? I very much like to use it

chkmls avatar Jun 23 '22 16:06 chkmls

You can't use React 18 with RNW 0.18 or RN 0.68

necolas avatar Jun 27 '22 17:06 necolas

@necolas what is the newest RN version supported?

rdinizz avatar Jan 04 '23 16:01 rdinizz