You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
As this package is meant to be used in browser, was wondering if you see any issues using https://github.com/feross/buffer instead of trying to access Buffer globally so that consumers wouldn't be required to add polyfills.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
goga-m
changed the title
Buffer is undefined in @ledgerhq/hw-transport-webusb
Buffer is not defined in @ledgerhq/hw-transport-webusbDec 8, 2021
Hey there,
Using
@ledgerhq/hw-transport-webusb
in browser with vite and I get theBuffer is not defined
error.If I am not mistaken it seems that it's only used in https://github.com/LedgerHQ/ledgerjs/blob/master/packages/hw-transport-webusb/src/TransportWebUSB.ts#L208.
As this package is meant to be used in browser, was wondering if you see any issues using https://github.com/feross/buffer instead of trying to access Buffer globally so that consumers wouldn't be required to add polyfills.
Thanks in advance.
The text was updated successfully, but these errors were encountered: