Skip to content

TypeScript cannot find declaration file #22

Open
@dhruvkb

Description

@dhruvkb

When @nuxt/devalue@2.0.0 is used with typescript@5.2.2, the follow error is raised.

node_modules/iles/dist/client/app/utils.ts:2:38 - error TS7016: Could not find a declaration file for module '@nuxt/devalue'. '<path_to_project>/node_modules/@nuxt/devalue/dist/devalue.mjs' implicitly has an 'any' type.
  There are types at '<path_to_project>/node_modules/@nuxt/devalue/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@nuxt/devalue' library may need to update its package.json or typings.

The problem and potential solutions to it are discussed in this issue microsoft/TypeScript#52363.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions