You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line gets transpiled to Math.pow by the default settings of create-react-app which means you end up doing Math.pow(BigInt(2), BigInt(64)) which fails with Uncaught TypeError: Cannot convert a BigInt value to a number
The text was updated successfully, but these errors were encountered:
We can't use the `**` operator as right now it gets transpiled to `Math.pow`
which only takes Numbers.
Similarly, trying to avoid referencing node globals to get a `Buffer` instance
causes similar problems now that bundlers don't tend to come with node polyfills
any more.
Swaps the use of `**` for the BigInt literal result of the calculation and uses
the `Buffer` module to ensure compatibility.
Fixes#7Fixes#8
Please publish with a `main` field to also fix#9.
This line gets transpiled to
Math.pow
by the default settings ofcreate-react-app
which means you end up doingMath.pow(BigInt(2), BigInt(64))
which fails withUncaught TypeError: Cannot convert a BigInt value to a number
The text was updated successfully, but these errors were encountered: