How can I import https://github.com/ensdomains/ensjs-v3/tree/main in my deno
This is npm package. I want to use it in my deno project. How can I achive it? I am trying this:
import { ENS } from "https://raw.githubusercontent.com/ensdomains/ensjs-v3/main/packages/ensjs/src/index.ts";
However, I am having error: error: Relative import path "@ethersproject/contracts" not prefixed with / or ./ or ../
at https://raw.githubusercontent.com/ensdomains/ensjs-v3/main/packages/ensjs/src/index.ts:4:8
3 Replies
maybe you can import it via esm.sh:
@block_hacks if it uses native node modules, then the
npm:
specifier would be another suggestion, but i recommend using esm.sh insteadsame error for esm.sh
how can I use it with npm:? do you have code sample