-
Notifications
You must be signed in to change notification settings - Fork 42
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
Bug: Cannot convert BigInt value to a number. #358
Comments
|
|
|
FYI, this is what i am referring to https://stackoverflow.com/help/minimal-reproducible-example |
Bug also occurs with chat demo: https://status-im.github.io/js-waku/ |
I was able to reproduce in the web-chat example by setting the "development": [
">0.2%",
"not dead",
"not op_mini all"
] and deleting the cache:
|
I was able to solve the issue in development with:
Will apply to prod and see if it works in GH pages. |
Here is the upstream issue: paulmillr/noble-ed25519#23 |
|
Unfortunately, setting the following in the "browserslist": {
"development": [
">0.2%",
"not ie <= 99",
"not android <= 4.4.4",
"not dead",
"not op_mini all"
]
} @ritvij14 can you try this solution with your project and let me know if it helps? |
@D4nte yes ok let me try this on our system today, I will get back to you on this soon. |
Great. Be sure to delete your |
@D4nte I added this thing like this:
and on doing |
@ritvij14 please have a look at at what This included all browsers that do not support BigInt such as ie 98 and below and android 4.4.3 and below. By restricting the browser target to more recent browser, it allowed the use of Keeping this issue open to track documentation effort. |
Documented in the ReactJS doc: waku-org/js.waku.guide#19 |
So what's the fix? I see a scattering of messages with nothing definitive. I get the issue with production react builds. |
@matbee-eth this is what you need to do. Add this in |
@D4nte |
I wasted 2 days on trying to fix it, tried everything from package update to cache clean. Nothing worked. Then saw this and implemented it and now it works. Thank you so much for saving my day! Thanks a ton! |
Hi, really sorry to hear you wasted time on this issue. Are you using |
This is a bug report
Problem
In our frontend platform at Huddle01 we are facing this bug on running
yarn build
.On checking various packages we found that when we commented the usage of waku functions and deleted the waku package then this error wasn't showing up.
Here is all the code related to waku functionality that we are using.
wakuUtils.js
Parts of code where we used waku in our live stream chats:
Notes
The text was updated successfully, but these errors were encountered: