4

I am using react-native-cli 2.0.1 and react-native 0.57.1 on windows 10.

However, when I create a project with react-native init projectname and try to run it with react-native run-android I get this error: enter image description here

I tried the steps that it mentions except for the first one, because when I try to run it I just get watchman: command not found.

DAA
  • 1,346
  • 2
  • 11
  • 19
Joel Jacobsen
  • 313
  • 1
  • 5
  • 15

2 Answers2

2

yarn add @babel/runtime. This will fix the issue.

Amila Dulanjana
  • 1,884
  • 1
  • 16
  • 33
0

Try doing this

rm -rf node_modules
npm install
Adeel Imran
  • 13,166
  • 8
  • 62
  • 77