Skip to content

Can't load v7.5.1 of @polkadot/wasm-crypto-asmjs - data is null? #597

@leemcmullen

Description

@leemcmullen

Trying to use version 7.5.1 of @polkadot/wasm-crypto-asmjs, specifically trying to import @polkadot/wasm-crypto/initOnlyAsm into a react native project, but keep getting the "FATAL: Unable to initialize @polkadot/wasm-crypto" error.

Tracked that down to the @polkadot/wasm-crypto-asmjs/cjs/data.js file being empty in the 7.5.1 package on npm, it just has:

const asmJsInit = null;

exports.asmJsInit = asmJsInit;

7.4.1 had the JS wasm implementation in the cjs/data.js file and therefore loaded the JS asm via the bridge.

Is this expected for the 7.5.1 package?

I couldn't find any documentation around that file no longer being populated in the npm package or if there was an alternative way of getting the JS asm implementation in environments which don't have a native wasm implementation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions