asciidoctor.js icon indicating copy to clipboard operation
asciidoctor.js copied to clipboard

Cannot import TypeScript types under vite because "exports" does not include "types"

Open eternaleye opened this issue 2 years ago • 1 comments

Exact error message on @asciidoctor/core version 3.0.2:

Could not find a declaration file for module '@asciidoctor/core', '${PROJECT}/node_modules/@asciidoctor/core/dist/browser/asciidoctor.js' implicitly has 'any' type.

There are types at '${PROJECT}/node_modules/@asciidoctor/core/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@asciidoctor/core' library may need to update its package.json or typings.

eternaleye avatar Oct 10 '23 21:10 eternaleye

Thanks for opening this issue. Feel free to open a pull request to add it 👍

ggrossetie avatar Oct 11 '23 06:10 ggrossetie