React native - illegal operation on a directory

 This is a weird error it comes when the metro bundler is not working correctly and taking the cached data all the time and you will see the debugger show the same debug data even you change any debug logs in the code.


  • The solution is to that clean the caches and reinstalls the node modules by removing them
  • For that run the following command in the terminal.


"watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache "

No comments:

Post a Comment