Closed jeffreylanters closed 4 years ago
The URL type I'm using is from the url
module in the Node.js stdlib. Are you trying to use this package in the browser?
No, I'm using it in the NodeJS environment. Typescript tells me to add the dom
library to resolve this issue.
What version of Node are you using, and could you share me your tsconfig.json?
Your library requires the
dom
library as a compiler option when you're using your module in TypeScript. This is because you use the typeURL
in your typings. You might want to consider change this intostring
.