asciidoctor.js
asciidoctor.js copied to clipboard
Cannot import TypeScript types under vite because "exports" does not include "types"
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.
Thanks for opening this issue. Feel free to open a pull request to add it 👍