What is the Haste module map in node.js?
What is the Haste module map in node.js?
When I launch :
react-native bundle --entry-file='index.js' --bundle-output='./ios/MyProject/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
I have an error which says that :
Unable to resolve module `util` from `/Users/canatac/RNProjects/<MyProject>/node_modules/<A_Module>/lib/Bot.js`: Module `<A_Module>` does not exist in the Haste module map.
But what is a Haste module map ?
1 Answer
1
Same error occured for me once, and that Github thread has helped me.
I had a similar problem - what helped was running npm start -- --reset-cache command.
Based on the question itself, it is somehow connected to /tmp/haste-map-react-native-packager-*, ergo React Native Packager.
/tmp/haste-map-react-native-packager-*
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Yes, thanks, I learned that trick. I also see that Haste Map is the dependency graph. But written with capital 'H', I wonder if it's a kind a concept or reference of package dependency map.
– Jan ATAC
Aug 24 at 6:27