Resolution error when using TypeScript with moduleResolution
set to node16
or nodenext
#669
Labels
moduleResolution
set to node16
or nodenext
#669
Expected Behavior
html-dom-parser to resolve correctly when using TypeScript with
moduleResolution
set tonode16
ornodenext
(effectively: in pure ESM environment).Actual Behavior
html-dom-parser is not resolved correctly:
https://arethetypeswrong.github.io/?p=html-dom-parser%405.0.7
This also causes the types to be non-functional in VSCode.
Steps to Reproduce
Create a project using TypeScript with
moduleResolution
set tonode16
ornodenext
.Create a file with the following content:
you'll already see, when you hover over
htmlToDOM
bit, that types are not loaded correctly.Reproducible Demo
Environment
Keywords
Relates to remarkablemark/html-react-parser#1305
The text was updated successfully, but these errors were encountered: