question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Unable to initialize @polkadot/wasm-crypto 1.2.1

See original GitHub issue

WebAssembly does not work with react-native webview.

ReferenceError: Can't find variable: WebAssembly

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jacogrcommented, Jun 17, 2020

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)

0reactions
polkadot-js-botcommented, May 31, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found