Skip to content

Integration NAMI wallet api to React APP #7

@vadirajkulkarni

Description

@vadirajkulkarni

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions