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

Integration NAMI wallet api to React APP #7

Open
vadirajkulkarni opened this issue Dec 29, 2021 · 2 comments
Open

Integration NAMI wallet api to React APP #7

vadirajkulkarni opened this issue Dec 29, 2021 · 2 comments

Comments

@vadirajkulkarni
Copy link

vadirajkulkarni commented Dec 29, 2021

I am trying to use this
https://github.com/Felippo001/nami-wallet-api
to connect my react app to Nami wallet using cardano-serialisation-lib.

async function loadWasm (){
    try {
      const wasm = await import("@emurgo/cardano-serialization-lib-browser");
      setWasm(wasm);
    } catch (err) {
      console.error(`Unexpected error in loadWasm. [Message: ${err.message}]`);
    }
  };

I am using this to load cardano serialisation lib.
The error I am getting while i npm start
I have already installed node-fetch and also @emurgo/cardano-serialization-lib-browser
Module not found node:http in node-fetch/src

@Spectrevuln-sketch
Copy link

same problem i got have error node core error like node:zlib ERROR in node:worker_threads how to fix this i was figure this problem for 1 week and there is no problem resolve for this

@CyberCyclone
Copy link

This is a general WASM issue. Some frameworks outright don't support it and some you need to do work arounds. So far I've been able to get WASM to work with Next.js, so that's the most I can help with.

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

3 participants