You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For newer versions of React Native, v0.7.0 and above (using 0.70.4), when I import the axios (version 1.0.0 and above) from the axios module I get this error message:
'TypeError: Restricted in strict mode, js engine: hermes'.
When I try to require it ------ const axios = require('axios').default , I get this error message:
'Error: Requiring module "node_modules/axios/index.js", which threw an exception: TypeError: Restricted in strict mode, js engine: hermes'.
The only solution was to downgrade to versions that are less then 1.0.0, in my case to 0.27.2
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
For newer versions of React Native, v0.7.0 and above (using 0.70.4), when I import the axios (version 1.0.0 and above) from the axios module I get this error message:
'TypeError: Restricted in strict mode, js engine: hermes'.
When I try to require it ------ const axios = require('axios').default , I get this error message:
'Error: Requiring module "node_modules/axios/index.js", which threw an exception: TypeError: Restricted in strict mode, js engine: hermes'.
The only solution was to downgrade to versions that are less then 1.0.0, in my case to 0.27.2
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: