-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 definitions wrong with 21.2.6 #1590
Comments
Thanks for reporting this. Can you confirm that it works fine in the previous version: v21.2.5? |
@jackocnr Yes. I temporary reverted to this version. |
Thanks. @anthony0030 this error must be a result of the translation export changes we made - is there any chance you could take a look at this? |
Looking at the difference between the types file in v21.2.5 vs v21.2.6 I think the problem is just that the 2 new imported modules have ".mjs" on the end, as the importing works fine a few lines later: |
Hi @jackocnr, I don’t have any experience really with TS. I would love to help but don’t know how. |
No worries, I'll take a look when I find some time. |
Just another datapoint. Our CI build broke when trying to update to the newest version this morning. Fixing the library to 21.2.5 resolved the issue in the short tem. |
Steps to reproduce
Expected behaviour
Success
Actual behaviour
Error: node_modules/intl-tel-input/build/js/intlTelInput.d.ts:545:37 - error TS2307: Cannot find module 'i18n/en/countries.mjs' or its corresponding type declarations.
545 import countryTranslations from "i18n/en/countries.mjs";
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/intl-tel-input/build/js/intlTelInput.d.ts:546:39 - error TS2307: Cannot find module 'i18n/en/interface.mjs' or its corresponding type declarations.
546 import interfaceTranslations from "i18n/en/interface.mjs";
~~~~~~~~~~~~~~~~~~~~~~~
Initialisation options
The text was updated successfully, but these errors were encountered: