stellar / js-stellar-sdk

Main Stellar client library for the JavaScript language.
https://stellar.github.io/js-stellar-sdk/
Apache License 2.0
615 stars 296 forks source link

No Identifiers allowed after numeric literals (React Native) #994

Open AtmegaBuzz opened 2 weeks ago

AtmegaBuzz commented 2 weeks ago

Describe the bug When i added this line

        let wallet = walletSdk.Wallet.TestNet();

The react native was giving this error "No Identifiers allowed after numeric literals". upon debugging i found our that it can due to the bignumber.js or big int used in the sdk

What version are you on? "@stellar/typescript-wallet-sdk": "^1.5.0"

Additional context WhatsApp Image 2024-06-16 at 01 03 58_e0875d0e

Shaptic commented 3 days ago

You should be sure to use a React Native compiler that supports BigInt literals (like 1234n).