Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eternaleye opened this issue Oct 10, 2023 · 1 comment

Comments

@eternaleye
Copy link

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.

@ggrossetie
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants