0

I'm developing a react native project when i run

npm start -- --reset-cache

react-native run-ios

open a terminal Running Metro Bundler on port 8081. and it's done but the simulation did not bundle project brings an older version.

I tried to delete node_modules again install and same way for pod file but it's still not working also I tried clear bundle but still not bundle my project?

any idea?

errorau
  • 2,121
  • 1
  • 14
  • 38

2 Answers2

4

Try

watchman watch-del-all

Removes all watches and associated triggers, link.

This should work, if not then try removing watchman and reinstalling it. Using:

brew uninstall watchman
brew install watchman
Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56
pritesh
  • 2,162
  • 18
  • 24
  • I did this but still not working packager is started when the app installed on the simulator it didn’t load bundles from the packager. – AliRehman7141 Jan 27 '23 at 11:46
1
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start --reset-cache

You can try with above scripts whenever you want to clear all caches in your RN project

Isaac
  • 12,042
  • 16
  • 52
  • 116