We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi team, jest is raising this error when trying to use cosmojs that depends on libsodium-wrappers
libsodium-wrappers
Minimal example:
import Tendermint34Client from '@cosmjs/tendermint-rpc' test('Tendermint34Client', () => { console.log(Tendermint34Client) })
Any hint on how to fix it?
The text was updated successfully, but these errors were encountered:
Which error do you get?
The import needs to look like this
import { Tendermint34Client } from '@cosmjs/tendermint-rpc'
Sorry, something went wrong.
My mistake, it's the same error. The problem is loading the libsodium library. Somebody else also had that error.
https://stackoverflow.com/questions/73088159/importing-libsodium-wrappers-in-jest-throws-the-error-cannot-read-properties-of
My current workaround is chaging e.sodium.onload => e?.sodium.onload in the node_modules's libsodium
e.sodium.onload
e?.sodium.onload
Any chance this is related to #1429? Or something completely different?
No branches or pull requests
Hi team, jest is raising this error when trying to use cosmojs that depends on
libsodium-wrappers
Minimal example:
Any hint on how to fix it?
The text was updated successfully, but these errors were encountered: