but I'm using ESM modules so I'm trying to import dom like import { Node } from "xmldom-qsa/dom"; or import Node from "xmldom-qsa/dom"; but no matter what I do typescript tells me "Cannot find module 'xmldom-qsa/dom' or its corresponding type declarations." so I wonder if there's any workaround to do this?
Hi ,I'm trying to do something similar to the example on the readme:
but I'm using ESM modules so I'm trying to import dom like
import { Node } from "xmldom-qsa/dom";
orimport Node from "xmldom-qsa/dom";
but no matter what I do typescript tells me "Cannot find module 'xmldom-qsa/dom' or its corresponding type declarations." so I wonder if there's any workaround to do this?