Hey, the linkedom/workers submodule types does not work when moduleResolution is set to Bundler.
The following error occurs:
Could not find a declaration file for module 'linkedom/worker'. '**/node_modules/linkedom/worker.js' implicitly has an 'any' type.
There are types at '**/node_modules/linkedom/types/esm/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'linkedom' library may need to update its package.json or typings.
It can be fixed by making changes to ./worker exports as shown below:
Hey, the
linkedom/workers
submodule types does not work whenmoduleResolution
is set toBundler
. The following error occurs:It can be fixed by making changes to
./worker
exports as shown below: