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

Typings not picked when using ESM #42

Open
LinusU opened this issue Jan 2, 2023 · 0 comments
Open

Typings not picked when using ESM #42

LinusU opened this issue Jan 2, 2023 · 0 comments

Comments

@LinusU
Copy link

LinusU commented Jan 2, 2023

When using "module": "node16" TypeScript is unable to find the typings for the package.

Could not find a declaration file for module 'timezone-support'. 'foo/node_modules/timezone-support/dist/index.mjs' implicitly has an 'any' type.

Since the file imported is dist/index.mjs, TypeScript looks for a dist/index.d.mts file which doesn't exist.

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

No branches or pull requests

1 participant