Duplicate identifier 'type'.

This issue has been tracked since 2022-12-27.

Error: node_modules/htmlparser2/lib/index.d.ts:2:18 - error TS2300: Duplicate identifier 'type'.

export { Parser, type ParserOptions };

I am getting the above error in my angular application. How to resolve this?

fb55 wrote this answer on 2022-12-30

This is modern TypeScript syntax and requires an update to your TypeScript version. Feel free to use the previous major version of htmlparser2 if you are unable to upgrade TypeScript.

More Details About Repo
Owner Name fb55
Repo Name htmlparser2
Full Name fb55/htmlparser2
Language TypeScript
Created Date 2011-08-27
Updated Date 2023-03-19
Star Count 3793
Watcher Count 50
Fork Count 370
Issue Count 4

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date