Skip to content

Could not find declaration file for module 'bitecs' #116

@Jelleebeen

Description

@Jelleebeen

Hi,

I'm seeing the following error when using bitecs (v0.3.38) with Vite:

Could not find a declaration file for module 'bitecs'. ... /node_modules/bitecs/dist/index.mjs' implicitly has an 'any' type.
There are types at ... /node_modules/bitecs/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'bitecs' library may need to update its package.json or typings.

According to this discussion, the suggestion from Typescript is to rename the index.d.ts file to index.d.mts, and when I do this locally, it resolves this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions