I really can't place my hands on more clues to where this error is coming from or even how to reproduce it. All I can say is that I was trying to run my react native project and got that error. Anyone who has explanations and possible solution is welcome. I tried running the project with :
npm run android
Further error messages :
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication), js engine: hermes