-
Notifications
You must be signed in to change notification settings - Fork 147
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
Regression on an undocumented usage of BigInt in 6.9.2 – Unexpected token: name (n) in file node_modules/@polkadot/util/bi/sqrt.js #1245
Comments
The second issue certainly should be addressed, the intent is/was only to use paths containing BI when available in the environment. Exports of constants/utilities (which are not used in the code atm), was in the CHANGELOG, see https://github.com/polkadot-js/common/releases/tag/v7.9.1 that adds these exports - The fact that parsers create chaos on them as exports-only, not used anywhere internally, is certainly unintended. As for more CI environments, PRs would be very, very welcome - I cannot even get RN setup on my local machine as it stands :) All changes are tested against web, Node and Electron (obviously without weird plugins as applied above - it boggles the mind). As much As I want to support the world, I cannot make all people happy - so if you are unhappy, contribute. PS: The |
The 8.0.2 release, https://github.com/polkadot-js/common/releases, takes care of the |
PR to fix the webpack plugin mzgoddard/hard-source-webpack-plugin#550 |
Closing - 8.0.2 resolved the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
It seems like this was unexpected, because not documented in Release notes.
We have two big projects to maintain at Ledger:
hard-source-webpack-plugin
which is where we also seem to experience this issue.error: Do not know how to serialize a BigInt
Both our projects can't upgrade anymore to latest polkadot version, last time it happened was in August and one month later our support of polkadot broke in Ledger Live because there were no provided solution. I'm trying with this ticket to avoid this situation again. Please try to have more CI to test against more environments, because BigInt is not something we can easily move on in our side. 🙏 Thanks.
The text was updated successfully, but these errors were encountered: