-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot convert a BigInt value to a number #87
Comments
Hi, how are you compiling/bundling your app? |
This is caused by the conversion from ES6 to Es5, because * * becomes math.pow(), but math.pow() does not support bigint type |
Can you please try |
encounter the same issue with |
@assafmo I'm also facing the same issue right now with Reactjs. Currently using |
Update:
|
I'm facing the same issue with Reactjs. Adding browserslist didn't work. |
Try Updating to [email protected] or the latest one. |
Not working, can you please point me to any working example with react ? |
It's giving an error because the template's version is Here's the complete documentation of secretjs. It's updated and works well. And here's a working example. I'm using secretjs and reactjs. |
I used the above example with latest secretjs, It seems this doesn't work with typescript. I used same config as here. |
v1.5 now supports react-native, please check this out https://github.com/scrtlabs/react-native-secretjs |
Our react native app is using secretjs,but
import { SecretNetworkClient } from "secretjs"has a error ,"Cannot convert a BigInt value to a number"
We have version ^1.3.0-beta.1 installed,Node version is v16.15.0, react-native is 0.68
The text was updated successfully, but these errors were encountered: