Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'error : unknown option --projectRoot' in react native

Tags:

react-native

"While running 'react-native run-android' command metro server gives this error."

Here is the error Image: enter image description here

like image 849
Fuad Khan Avatar asked Mar 03 '26 23:03

Fuad Khan


1 Answers

Downgrading from react native 0.60.0 to 0.59.9 worked for me

in package.json:

"react": "16.8.3",
"react-native": "0.59.9"
like image 145
unijob Avatar answered Mar 06 '26 19:03

unijob



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!