parse5 icon indicating copy to clipboard operation
parse5 copied to clipboard

7.2.0 throws a TS error TS1383: Only named exports may use 'export type'

Open xealgo opened this issue 1 year ago • 4 comments

The exact error is:

node_modules/parse5/dist/index.d.ts(5,1): error TS1383: Only named exports may use 'export type'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

My temporary solution was to create a package.json resolutions entry for 7.1.2 since this package is a dependency of another package and not a direct dependency. That was after upgrading Node to 21 and TS to 5.4.3.

xealgo avatar Oct 15 '24 18:10 xealgo