Cosmjs incompatibility with ES2018
See original GitHub issueHi everyone, I’m trying to create a new rn project including cosmjs. After the inclusion, if I try to use part of the packages included on cosmjs all works like a charm. However, if I try to import the tendermint-rpc package or the stargate one, the inclusion fails. Giving a few debugging, I saw that the issue is linked to BigInt, which is on this repo, included as a native call (since it is available from ES10).
ReferenceError: Can't find variable: BigInt
Maybe I’m missing something. Is there anyone who could help in including and using cosmjs (fully) inside a React Native project?
Useful information
React native version: 0.68.2 Tested with both cosmjs version: 0.24.0-alpha.25 and latest
Thank you.
Issue Analytics
- State:
- Created a year ago
- Comments:26 (10 by maintainers)
Top Results From Across the Web
New ES2018 Features Every JavaScript Developer Should ...
The benefit of using a flag to opt in to the new behavior is backwards compatibility. So existing regular expression patterns that use...
Read more >@cosmjs/stargate - npm
Utilities for Cosmos SDK 0.40. Latest version: 0.29.5, last published: 15 days ago. Start using @cosmjs/stargate in your project by running ...
Read more >低価格 JS monsta not me get for L 26.5 5'11 サーフィン
Cosmjs incompatibility with ES2018 · Issue #1144 · cosmos/cosmjs. Meet zx: A Better Way to Write Scripts with Node.js - DEV Pratham on...
Read more >@cosmjs/cosmwasm-stargate Documentation
An SDK to build CosmWasm clients. Compatibility. CosmWasm, x/wasm, @cosmjs/cosmwasm-stargate. 0.16-1.0.0-beta ...
Read more >cosmjs - bytemeta
cosmjs repo issues. ... Cosmjs incompatibility with ES2018. DeveloperInProgress. DeveloperInProgress CLOSED · Updated 6 months ago ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Giorgionocera Hey man, could you provide a demo that rn uses part of the packages included on cosmjs and it works well. THX! I cannot run rn with cosmjs.
Hi there, after the release of RN 0.70.0, they added support to BigInt in Hermes. Now it is also possible to use the latest releases of CosmJS, to facilitate the creation of an RN project with CosmJS, I have created a template for the react-native CLI.
It is obviously an open source template! You all can use it, and, most importantly, can contribute in improving it!