Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting errors on React Native and Axios 1.0.0 #5005

Closed
billnbell opened this issue Oct 5, 2022 · 6 comments
Closed

Getting errors on React Native and Axios 1.0.0 #5005

billnbell opened this issue Oct 5, 2022 · 6 comments

Comments

@billnbell
Copy link

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.

@jasonsaayman
Copy link
Member

This might be related to #5003

@trim21
Copy link
Contributor

trim21 commented Oct 5, 2022

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.

@Adnan-Bacic
Copy link

Adnan-Bacic commented Oct 6, 2022

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

@jpstijn
Copy link

jpstijn commented Oct 7, 2022

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

@Romick2005
Copy link

Duplicate #4998

@jasonsaayman
Copy link
Member

Hi 👋

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

npm i axios@1.2.0-alpha.1

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants