Types error
polRk opened this issue · 2 comments
polRk commented
Try to import
import { Node } from 'parse5/dist/tree-adapters/default'
Error: Missing "./dist/tree-adapters/default" export in "parse5" package
43081j commented
are you using typescript?
the default adapter is exported at top-level (and only really accessible there), but its types should be available from the path directly.
maybe try an explicit import type { Node }
and see if it works then. Node
is only a type so that should be the default anyway, but worth a try
fb55 commented
Assuming this is resolved.