cardano-serialization-lib icon indicating copy to clipboard operation
cardano-serialization-lib copied to clipboard

Npm package Warning in Angular

Open josemmrocha opened this issue 3 years ago • 4 comments

I am using the NPM package in an Angular App. With Browser WASM (v. 9.1.2) it shows a Warning in console while compiling:

./node_modules/@emurgo/cardano-serialization-lib-browser/cardano_serialization_lib_bg.js:12128:14-53 - Warning: Critical dependency: the request of a dependency is an expression.

This is the line of code:

image

The package is actually working correctly. But would like to avoid warnings in production. Any idea?

josemmrocha avatar Nov 19 '21 12:11 josemmrocha

Getting the same thing in dev with react. Would be great if the warning could be removed.

electic avatar Nov 26 '21 04:11 electic

any updates?

vladimirvolek avatar Jan 13 '22 15:01 vladimirvolek

This is an issue with some upstream dependencies and not something we can tackle in this codebase. You can see https://github.com/rustwasm/wasm-bindgen/issues/2706 where one of the maintainers answered

SebastienGllmt avatar Jan 13 '22 16:01 SebastienGllmt

Are there any plans for a pure js library to do serializations?

electic avatar Jan 17 '22 07:01 electic