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

Error in react-native ("Restricted in strict mode ") #143

Open
divyangkhatri opened this issue Apr 6, 2024 · 2 comments
Open

Error in react-native ("Restricted in strict mode ") #143

divyangkhatri opened this issue Apr 6, 2024 · 2 comments

Comments

@divyangkhatri
Copy link

Package version details

    "@dydxprotocol/v4-client-js": "^1.1.4",
    "react-native": "0.72.7"  

Hermes engine is enabled

Device iOS simulator

Actual issues

When just write import line code

import {
  ValidatorClient,
  Network,
  LocalWallet,
  BECH32_PREFIX,
} from '@dydxprotocol/v4-client-js';

getting following error. Did not get details log.
Restricted in strict mode

Copy link

linear bot commented Apr 6, 2024

@divyangkhatri
Copy link
Author

divyangkhatri commented Apr 6, 2024

@mike-dydx @jaredvu
I found the issues it is related to axios specific version,

Below is the issues link

axios/axios#4998
facebook/react-native#34868

PR for this fixes

#144

I only updated the axios version to the latest and also performed the test cases. Every test cases pass successfully.
So, please review and test and approve the PR.

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

1 participant