question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cosmjs incompatibility with ES2018

See original GitHub issue

Hi 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:closed
  • Created a year ago
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
nanqiang-lincommented, Jun 10, 2022

@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.

2reactions
DavideSegullocommented, Oct 23, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found