*createRequire needed again

This commit is contained in:
Derrick Hammer 2022-07-05 16:22:41 -04:00
parent ab6ee0f1a7
commit dc647f169e
1 changed files with 2 additions and 0 deletions

View File

@ -4,7 +4,9 @@ import rand from "random-key";
// @ts-ignore
import SPVNode from "hsd/lib/node/spvnode.js";
import config from "../config.js";
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const { NodeClient } = require("hs-client");
let hsdServer: SPVNode;