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
Originally posted by redrose4y293 December 17, 2023
Can Anyone help me this error i search a lot but got nothing about this error my react-native version is 0.70.0 its show this error when i install a fresh and latest version metro doesn't start automatically my OS is windows 10
Hey @redrose4y293, that's because you initialised project with the newest CLI on older React Native version. So for now there are two workarounds for this:
Remove node_modules, and reinstall and that should download new CLI from react-native's resolution from package.json, if this still fails you should simply create a new project with npx react-native@0.70 init app --version 0.70, btw if that's new project you should use the newest React Native version, because 0.70 will be soon not supported!
Not recommended: delete automaticPodsInstallation field from react-native.config.js file.
Thanks for your support. A full day I spent on react native doc and found the solution can I get your WhatsApp number for better reach and get some knowledge
Activity
szymonrybczak commentedon Dec 17, 2023
Hey @redrose4y293, that's because you initialised project with the newest CLI on older React Native version. So for now there are two workarounds for this:
node_modules, and reinstall and that should download new CLI fromreact-native's resolution frompackage.json, if this still fails you should simply create a new project withnpx react-native@0.70 init app --version 0.70, btw if that's new project you should use the newest React Native version, because 0.70 will be soon not supported!automaticPodsInstallationfield fromreact-native.config.jsfile.szymonrybczak commentedon Jan 2, 2024
@redrose4y293 any updates? :)
Ehsan-Nawaz-Dev commentedon Jan 2, 2024
I try all the suggestion and search all stack overflow but nothing happen
szymonrybczak commentedon Jan 3, 2024
Please @redrose4y293 just run
npx react-native@latest init projectand it should work :)Ehsan-Nawaz-Dev commentedon Jan 6, 2024
Thanks for your support. A full day I spent on react native doc and found the solution can I get your WhatsApp number for better reach and get some knowledge
szymonrybczak commentedon Jan 7, 2024
I'm happy that it worked, if you have any other problems with CLI, or React Native just create issue in proper place :)