timezone-support icon indicating copy to clipboard operation
timezone-support copied to clipboard

Typings not picked when using ESM

Open LinusU opened this issue 2 years ago • 0 comments

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.

LinusU avatar Jan 02 '23 12:01 LinusU