Skip to content

Getting errors on React Native and Axios 1.0.0 #5005

Closed

Description

@billnbell
ERROR  TypeError: Restricted in strict mode, js engine: hermes
LOG  Running "TheClub" with {"rootTag":1}
ERROR  Invariant Violation: "TheClub" 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 I downgrade to 0.27 no errors anymore.

Activity

  1. jasonsaayman commented on Oct 5, 2022

    @jasonsaayman
    Member

    This might be related to #5003

  2. trim21 commented on Oct 5, 2022

    @trim21
    Contributor

    this maybe related to #5000 (comment)

    And, if I'm not mistaken, react native users needs the package.json file to be exported as well.

  3. Adnan-Bacic commented on Oct 6, 2022

    @Adnan-Bacic

    im also getting an error in react native:

    ERROR  TypeError: Restricted in strict mode, js engine: hermes
     ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
          This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
    

    no errors on 0.27.2

    edit:
    also getting an error on 1.1.0:

    ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
          This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
    
  4. jpstijn commented on Oct 7, 2022

    @jpstijn

    Looks like i have the same issue:

    ERROR  TypeError: Restricted in strict mode, js engine: hermes
    ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
           A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
    

    Current version: 1.1.1
    Old version: 0.27.2 works perfect

  5. Romick2005 commented on Oct 7, 2022

    @Romick2005

    Duplicate #4998

  6. jasonsaayman commented on Nov 10, 2022

    @jasonsaayman
    Member

    Hi 👋

    Please try the latest pre-release by running the following:

    Please provide feedback in either the pinned issue or the discussion thread 🧵

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions