0
votes

error: ReferenceError: SHA-1 for file /usr/local/lib/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph/assets/empty-module.js (/usr/local/lib/node_modules/react-native/node_modules/metro/src/node-haste/DependencyGraph/assets/empty-module.js) is not computed.

I had this error for a while and fixed it. any of you all having the same error just use the command below..

FIX. : npm i -g react-native-cli

Welcome to SO. Self-answered questions are welcome, but they should be in the same form as all other questions, i.e. you write a complete and answerable question first and then add your answer as a separate answer below. Questions that already contain the answer, like you did here, have the risk to be closed and deleted soon. And when people search for this topic, they probably won't click on your question because in the serach result it says 0 answers.jps