im getting an error “Invariant Violation: “main” has not been registered.”

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
    at node_modulesreact-nativeLibrariesCoreExceptionsManager.js:null in reportException
    at node_modulesreact-nativeLibrariesCoreExceptionsManager.js:null in handleException
  • … 7 more stack frames from framework internals

enter image description here

I’m just calling one file . When I call that file it through thi error