-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Typescript error: A 'const' initializer in an ambient context must be a string or...
#41
Comments
I just came here to report this as well. Glad to see the work around, thanks for that. |
I don't know if this helps however I have managed to get 3.2.2 working and compiling (I had other issues with 3.1.0) If you see above if you add the skipLibCheck then it compiles for me. |
Hi @ajmas @oldschoolbg, sorry for the late reply. I think it's fixed in version I also pushed the missing tag for |
I won’t be able to check this until Monday, due to lack of access to my computer. |
thanks for getting this looked at @manuelmhtr I will endeavour to check this out either this evening or tomorrow morning. |
Closing this issue assuming it's fixed. |
Only just got around to testing this. The issue does appear to be resolved - thanks. Tested with 3.3.0 |
Oh I got SO busy with "paid" work I've not been back to my private project that was using this :) Great news, thanks so much for getting this resolved :) I'll test it as well asap but good news from @ajmas that it works :) |
When building a typescript based project using
countries-and-timezone
as a dependency, I get the following error:With the following output displayed (truncated):
Looking at the explanation of this error and looking at esm/index.d.ts, it would seem lines 1 & 2 are problematic, since they are complex types.
Workaround
Install 3.1.0 of countries-and-timezones, since all of the 3.2.x versions cause the same issue.
Versions
BTW I don't see a
3.2.2
tag or release in this repository, even if changes and npm make reference to it - is that an omission?The text was updated successfully, but these errors were encountered: