parse5 icon indicating copy to clipboard operation
parse5 copied to clipboard

Types error

Open polRk opened this issue 3 years ago • 1 comments

Try to import

import { Node } from 'parse5/dist/tree-adapters/default'
Error: Missing "./dist/tree-adapters/default" export in "parse5" package

polRk avatar Aug 08 '22 11:08 polRk

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

43081j avatar Aug 08 '22 19:08 43081j

Assuming this is resolved.

fb55 avatar Sep 02 '22 17:09 fb55