Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native upgrade returning 'toLowerCase' of undefined

Tags:

react-native

I'm trying to update my react native to latest version. I run the command: react-native upgrade --verbose

However, it is returning:

info No version passed. Fetching latest...
info Fetching diff between v0.59.8 and v0.60.5...
error Cannot read property 'toLowerCase' of undefined
debug TypeError: Cannot read property 'toLowerCase' of undefined
    at getPatch (/Users/myUser/Documents/React Native/myApp/node_modules/@react-native-community/cli/build/commands/upgrade/upgrade.js:109:121)
    at process._tickCallback (internal/process/next_tick.js:68:7)

How can I upgrade react native?

like image 388
myTest532 myTest532 Avatar asked Dec 14 '25 18:12

myTest532 myTest532


1 Answers

Add the name attribute in your package.json file. this will resolve the issue

like image 169
Gaurab Sahu Avatar answered Dec 17 '25 14:12

Gaurab Sahu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!