ERROR: Unable to initialize @polkadot/wasm-crypto 1.2.1
See original GitHub issueWebAssembly does not work with react-native webview.
ReferenceError: Can't find variable: WebAssembly
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unable to initialize @polkadot/wasm-crypto:: WebAssembly is ...
The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or ...
Read more >@polkadot/wasm-crypto - npm
A wasm interface layer for use by @polkadot/util-crypto. Latest version: 6.4.1, last published: 15 days ago.
Read more >FAQ - polkadot{.js}
I am having trouble initializing the wasm interface. The @polkadot/util-crypto libraries has a WASM backend but has JS fallbacks in place for most...
Read more >@polkadot/util-crypto | Yarn - Package Manager
A collection of useful crypto utilities for @polkadot ... useful cyrpto utility functions that are used across all projects in the @polkadot namespace....
Read more >https://gitlab.parity.io/parity/mirrors/parity-sig...
The Parity Signer mobile app can be used to store Ethereum or Kusama accounts. ... NETWORK_LIST[s])throw new Error("Couldn't create an accountId.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So for things like React-Native, there is an asm.js wrapper - it is enabled here when it detects “react-native”, https://github.com/polkadot-js/wasm/blob/master/packages/wasm-crypto/package.json#L18
So basically what that does (assuming the bundler doesn’t ignore the field) is to swap the bundle to asm.js. (Works really well in this sample as well - https://github.com/polkadot-js/ui/tree/master/packages/exampleReactNative)
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.