input-output-hk / js-cardano-wasm

various cardano javascript using wasm bindings
MIT License
31 stars 21 forks source link

broken package.json for cardano-wallet #47

Closed roccomuso closed 5 years ago

roccomuso commented 5 years ago

package.json in cardano-wallet npm module is missing the "main" key, so no pointing to the js file resulting in Error: Cannot find module 'cardano-wallet' when importing the npm module.

It should also be transpiled, since it's using new syntax. I'm assuming something went wrong during build process.

NicolasDP commented 5 years ago

Thanks for reporting your issue (and experimenting with these new bindings).

Here is an example on how one could use the project in an application:

https://github.com/primetype/cardano-wallet-example-js

I hope this helps.

NicolasDP commented 5 years ago

Thanks so much. So actually what was published was for browser. I have changed this so it is nodejs compatible now.

npm i --save cardano-wallet@0.2.2 is bundled for nodejs.