manuelmhtr / countries-and-timezones

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

TypeError: ct.getTimezone is not a function #65

Closed marcusaaronb closed 1 month ago

marcusaaronb commented 6 months ago

TypeError: ct.getTimezone is not a function at eval (index.js:13:1) at Array.forEach () at _callee$ (index.js:11:1) at tryCatch (runtime.js:64:40) at Generator.invoke (runtime.js:300:22) at Generator.eval [as next] (runtime.js:124:21) at asyncGeneratorStep (asyncToGenerator.js:5:24) at _next (asyncToGenerator.js:24:9)

manuelmhtr commented 6 months ago

Hello @marcusaaronb could you share more information about the problem? like:

marcusaaronb commented 6 months ago

Version: ^2.3.1 Node: v14.18.2 Importing: const ct = require('countries-and-timezones');

ihor-zinchenko commented 1 month ago

try import { getAllTimezones, getAllCountries } from 'countries-and-timezones';