-
Notifications
You must be signed in to change notification settings - Fork 75
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
ui-keyring "Buffer is not defined" error with Webpack 5 #602
Comments
This is really not a Webpack support forum, it is in the WP 5 CHANGELOG and migration guides -
|
I have actually read the migration guides. I have also found this:
I have revirewd the ledgerhq library. As of this issue and the linked PR, I guess they are not going to fix this issue. I have to stress that I had to migrate to Webpack 5 because of running into the issue described here in the first place. So I feel a little in a loop... |
Without the linked package, Ledger cannot work via WebUSB. There are no alternatives for Ledger+WebUSB support. Webpack itself has done a great job in documenting their migration and the issues around it. As for the linked API issue, it links to a working WP4 config - nobody forces anybody to upgrade. There is also the option to stay on older versions if you want to keep older tooling. EDIT: For CRA, this comment could be useful to not eject - facebook/create-react-app#11756 (comment) |
As an aside, what could be useful is an option to make the Ledger-compat opt-in instead of always applying it in the PS: And yes, I absolutely despise |
Thanks very much for your answers. Now I understand why this ledgerhq lib is essential. An opt-in would be an option, if I will not overcome the issue I'm facing, I will create an issue for that. |
1.0.1 has the Closing this one with the above release in mind. |
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. |
I have just migrated to Webpack 5 (with react-scripts 5.0.0 version). I have an issue using the ui-keyring lib.
In the browser console I get an error:
It is caused by this code:
The versions of @PolkaDot libs:
The text was updated successfully, but these errors were encountered: