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

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

Closed
Jelleebeen opened this issue May 9, 2023 · 1 comment · Fixed by #118
Closed

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

Jelleebeen opened this issue May 9, 2023 · 1 comment · Fixed by #118

Comments

@Jelleebeen
Copy link

Jelleebeen commented May 9, 2023

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.

foundrium added a commit to foundrium/bitECS that referenced this issue May 23, 2023
@Jelleebeen
Copy link
Author

Thanks, this resolves the issue.

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

Successfully merging a pull request may close this issue.

1 participant