inikulin / parse5

HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.
MIT License
3.66k stars 232 forks source link

error TS2305: Module '"entities/lib/decode.js"' has no exported member 'EntityDecoder'. #1296

Open shashi-chemist2u opened 1 week ago

shashi-chemist2u commented 1 week ago

node_modules/parse5/dist/tokenizer/index.d.ts:3:10 - error TS2305: Module '"entities/lib/decode.js"' has no exported member 'EntityDecoder'.

3 import { EntityDecoder } from 'entities/lib/decode.js';



Found 1 error in node_modules/parse5/dist/tokenizer/index.d.ts:3

parse5@7.2.0 version has breaking change was fine on parse5@7.1.2 version
43081j commented 1 week ago

Interesting. entities has exported EntityDecoder for a while now

@fb55 any idea about this? Maybe npm needs to bump the locally installed entities version but we did bad semver? I don't see how though 🤔

fb55 commented 1 week ago

This has been out for years now. My guess would be bad package deduplication. Removing your node modules and lock file should fix this.