dydxprotocol / v4-clients

Other
68 stars 55 forks source link

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

Open divyangkhatri opened 6 months ago

divyangkhatri commented 6 months ago

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

linear[bot] commented 6 months ago

GH-24 Error in react-native ("Restricted in strict mode ")

divyangkhatri commented 6 months ago

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

Below is the issues link

https://github.com/axios/axios/issues/4998 https://github.com/facebook/react-native/issues/34868

PR for this fixes

https://github.com/dydxprotocol/v4-clients/pull/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.