taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

Compile error: Cannot find name 'IterableIterator'. #250

Closed NuclleaR closed 1 year ago

NuclleaR commented 1 year ago

I created empty project using pnpm, added code from example and got error: Cannot find name 'IterableIterator'. 26 values(): IterableIterator;


Found 1 error in node_modules/.pnpm/node-html-parser@6.1.8/node_modules/node-html-parser/dist/nodes/html.d.ts:26

node: 20.5.1
pnpm: 8.5.1

node-html-parser: 6.1.8
typescript: 5.2.2
taoqf commented 1 year ago

Add a tsconfig.json to your project, make sure has lib "renext" in it.