Emurgo / cardano-serialization-lib

This is a library, written in Rust, for serialization & deserialization of data structures used in Cardano's Haskell implementation of Alonzo along with useful utility functions.
Other
231 stars 125 forks source link

Error: Cannot find module '@emurgo/cardano-serialization-lib-asmjs' #136

Closed CyberCyclone closed 2 days ago

CyberCyclone commented 3 years ago

I'm trying to get the asmjs version to run as the WASM version isn't compatible with the framework I'm using (MeteorJS). I've installed @emurgo/cardano-serialization-lib-asmjs as you normally do npm install --save @emurgo/cardano-serialization-lib-asmjs

image

When I run it though it comes back as:

Error: Cannot find module '@emurgo/cardano-serialization-lib-asmjs'

In the description, it says Browser (pure JS - no WASM) ASM.js package. Being an NPM module I would have expected this to still be compatible with NodeJS (server side) and not just limited to the browser.

I just wanted to double check that @emurgo/cardano-serialization-lib-asmjs can run from NodeJS and there's no special setup require?

xray-robot commented 3 years ago

Looks like 6.0.0 asm version compiles with errors and they skipped publishing. May be this helps you: https://github.com/Emurgo/cardano-serialization-lib/issues/119#issuecomment-778293853

SebastienGllmt commented 3 years ago

Does the latest build (6.1.0) work for you? There should be no special setup required for the asmjs build.

lisicky commented 2 days ago

outdated