I am trying to run existing expo project. I've cloned it and ran yarn and then expo start. and got this error:
Unable to resolve module scheduler
from /path-to-project/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js
: Module scheduler
does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968
Tried to solve it by:
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*
ornpm start -- --reset-cache
. - Remove haste cache:
rm -rf /tmp/haste-map-react-native-packager-*
. - deleted and cloned project again multiple times
- deleted node_modules and reinstalled
- reinstalled watchman, npm and updated brew.
- Installed latest version of schedule package (0.5.0) instead of (0.4.0)
Clues: When trying to run iOS simulator, the budling gets stuck at %99
Building JavaScript bundle [================================= ] 99%
after that:
Failed building JavaScript bundle.