ERROR TypeError: Cannot read property ‘putVocabularies’ of undefined, js engine: hermes

I’m currently developing an app. I’m new to aws-amplify everything was working completely fine until my baby sister deleted my node modules by mistake. After reinstalling my node modules I get these two errors

ERROR TypeError: Cannot read property ‘putVocabularies’ of undefined, js engine: hermes

ERROR Invariant Violation: “main” has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn’t called., js engine: hermes

if im correct i know main can come up if the wrong dependencies are installed.

Please i was very close to completing my project and this have me at a major set back

I tried reinstalling aws-amplify install as well as aws-amplify-react-native but nothing works I get the same error over and over