manuelmhtr / countries-and-timezones

Minimalistic library to work with countries and timezones data
MIT License
224 stars 67 forks source link

TypeScript issue with ESM project #56

Closed diegohaz closed 1 year ago

diegohaz commented 1 year ago

When importing this package into an ESM project, I get the following TypeScript error:

Could not find a declaration file for module 'countries-and-timezones'. '/node_modules/countries-and-timezones/esm/index.js' implicitly has an 'any' type.

There are types at '/nodemodules/countries-and-timezones/esm/types.d.ts', but this result could not be resolved when respecting package.json "exports". The 'countries-and-timezones' library may need to update its package.json or typings._