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

[Bug] Error in react native 0.70.5 #271

Closed
silkaynhe opened this issue Mar 13, 2023 · 4 comments
Closed

[Bug] Error in react native 0.70.5 #271

silkaynhe opened this issue Mar 13, 2023 · 4 comments

Comments

@silkaynhe
Copy link

[Bug] Error in react native 0.70.5
Error: Unable to resolve module @ledgerhq/devices/hid-framing from ./node_modules/@ledgerhq/hw-transport-webusb/lib/TransportWebUSB.js: @ledgerhq/devices/hid-framing could not be found within the project or in these directories: node_modules

@stevenkhong
Copy link
Contributor

Hey @silkaynhe can you verify that you still get this error when you're using the latest version of the SDK?
v0.3.56

@silkaynhe
Copy link
Author

Hey @stevenkhong The error is still on version v0.3.56
error

@stevenkhong
Copy link
Contributor

Seems like the issue is with the ledgerhq library, discussed here: LedgerHQ/ledger-live#763

If you're using webpack4 and you don't really care about ledger functionality, a quick workaround is to pin the ledger library versions in package.json:

...
resolutions: {
    "@ledgerhq/hw-app-eth": "6.31.0",
    "@ledgerhq/hw-transport": "6.28.1",
    "@ledgerhq/hw-transport-webhid": "6.24.1",
    "@ledgerhq/hw-transport-webusb": "6.24.1",
}
...

@silkaynhe
Copy link
Author

Thanks @stevenkhong , this bug is resolved by adding resolutions but there was another error:
image

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