crypto-wasm-ts icon indicating copy to clipboard operation
crypto-wasm-ts copied to clipboard

Using crypto-wasm-ts in a browser

Open accozzam opened this issue 2 years ago • 1 comments

I'm trying to use the module in a browser, but it cannot be resolved correctly: Uncaught TypeError: Failed to resolve module specifier "@docknetwork/crypto-wasm-ts".

Any suggestions?

accozzam avatar Jun 08 '23 14:06 accozzam

Running typescript in a browser isn't practical first convert it to js using yarn build and then use the js file in your browser. The project doesn't have a bundler to create a single js file yet as we expect the consumer app to have a bundler setup, eg. sdk uses this project and its bundler (rollup) takes care of it.

lovesh avatar Jun 12 '23 12:06 lovesh