Skip to content

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

@eternaleye

Description

@eternaleye

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions