react-native-community / releases

React Native releases
https://github.com/facebook/react-native/
1.5k stars 404 forks source link

`axios/index` does not exist in the Haste module map #84

Closed sanjaykumarbal closed 5 years ago

sanjaykumarbal commented 5 years ago

I upgraded my app from 0.55.5 to 0.58.3. While running the app on ios simulator, i am getting the below error:

Loading dependency graph, done. error: bundling failed: Error: Unable to resolve module axios/index from /Users/testuser/Documents/Work/Projects/MyApp/src/api/http_methods/environment.js: Module axios/index does not exist in the Haste module map.

Tried the following steps to resolve by referring https://github.com/facebook/react-native/issues/4968

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.

I am still getting the same issue.

kelset commented 5 years ago

👋 there. You posted this issue in the wrong repo, you should be posting this on the main react native repo. This repository is for long form discussions about react native, as pointed out by the template.

Also, I suggest you upgrade one version at the time and use this lib to keep an eye on which changes you need to do https://github.com/pvinis/rn-diff-purge + read the changelog.