Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using crypto-wasm-ts in a browser #23

Open
accozzam opened this issue Jun 8, 2023 · 1 comment
Open

Using crypto-wasm-ts in a browser #23

accozzam opened this issue Jun 8, 2023 · 1 comment

Comments

@accozzam
Copy link

accozzam commented Jun 8, 2023

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?

@lovesh
Copy link
Member

lovesh commented Jun 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants