1

The react native app doesn't update automatically when I make changes in files of a folder(even when I reload it) unless I restarted and run yarn start again. It only auto-updates the changes of any files in the same directory of the app.js Can Anyone help me to figure out what can be the problem? ps: I am using expo

Menna Magdy
  • 355
  • 1
  • 2
  • 14

1 Answers1

0

I had the same problem. I solved it with:

rm -f ./.git/index.lock

Hernan
  • 69
  • 1
  • 3
  • Thank you, I found the solution in my case that I need to copy the project to WSL instead of accessing it from /mnt/.. – Menna Magdy Jan 12 '22 at 14:08
  • why would you delete the git lock file?This way you would lost the git index – Carmine Tambascia Jun 15 '22 at 05:34
  • Sometimes, for whatever reason, a git process will not end gracefully. There are a number of reasons why this would happen. In this case, you can resolve the problem simply by removing the index.lock file manually via this command or a similar command on your operating system: rm .git/index.lock. index.lock is not the same that index – Hernan Oct 26 '22 at 02:37
  • Well unfortunately, it doesnt work here. – Frédéric Fara Wat Jan 04 '23 at 00:31