You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the next library in a Vue 3 project with Typescript. When I import the library with import CountryFlag from 'vue-country-flag-next'; I get this error Cannot find module 'vue-country-flag-next' or its corresponding type declarations.
I created a new file vue-country-flag-next.d.ts in my project with declare module 'vue-country-flag-next'; as a workaround but It could be nice to support typing :D
The text was updated successfully, but these errors were encountered:
micm0
changed the title
Support typings in vue-country-flag-next
Support typscript in vue-country-flag-next
Jun 7, 2021
When you think this will be added? Causing some pain when testing stuff that require your component inside jest :) will be really appreciate if you add the declaration.
I'm using the next library in a Vue 3 project with Typescript. When I import the library with
import CountryFlag from 'vue-country-flag-next';
I get this errorCannot find module 'vue-country-flag-next' or its corresponding type declarations.
I created a new file
vue-country-flag-next.d.ts
in my project withdeclare module 'vue-country-flag-next';
as a workaround but It could be nice to support typing :DThe text was updated successfully, but these errors were encountered: