React Native – “Unable to resolve module”

Do the following steps to cleanup

  • Quit and launch Terminal
  • rm -rf iOS/build
  • npm cache verify
  • watchman watch-del-all
  • rm -rf node_modules
  • rm -rf /tmp/metro-bundler-cache-*
  • rm -rf /tmp/haste-map-react-native-packager-*
  • rm -rf $TMPDIR/react-*
  • rm -rf $TMPDIR/haste-*
  • rm -rf $TMPDIR/metro-*
  • npm cache clean
  • npm install && react-native link && react-native run-ios

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: