Skip to content
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 #135

Closed
gavrushoves opened this issue Mar 31, 2023 · 3 comments
Closed

Cannot convert a BigInt #135

gavrushoves opened this issue Mar 31, 2023 · 3 comments
Assignees

Comments

@gavrushoves
Copy link

After switching from "@suiet/wallet-kit": "^0.1.26" to "@suiet/wallet-kit": "^0.2.4" I didn't have any problems locally. But after deploying the react js application to the server, the application broke with such an error.

image

image

@gavrushoves
Copy link
Author

Even if I remove all imports of methods and WalletProvider. And just leave the installed package @suiet/wallet-kit. I get this error after deploying my dapp.

@bruceeewong
Copy link
Contributor

@gavrushoves I confirm that it's because of the mysten ts sdk which requires bigint compatible bundling. Just search for the appropriate bundling configs for your dapp

@gavrushoves
Copy link
Author

gavrushoves commented Apr 4, 2023

I added this code to my package.json and it helped. Thanks for the help.
"browserslist": {
"production": [
"chrome >= 67",
"edge >= 79",
"firefox >= 68",
"opera >= 54",
"safari >= 14"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants