Closed thanhboo closed 1 month ago
Can you clarify which version of the plugin you're using?
And can you share more about your setup: are you using eslint? typescript? etc, which versions are you using? And can you share your config files for them as well?
Which IDE are you using? What exactly is throwing that error, and is there any more information provided?
What bundler/version are you using etc?
Currently i'm using the environment like below:
The problem is when i'm using import IntlTelInput from 'intl-tel-input/reactWithUtils';
=> It throw error Cannot find module 'intl-tel-input/reactWithUtils' or its corresponding type declarations.
Thanks.
Which version of Typescript?
And please include your tsconfig as well.
Closing due to inactivity.
Plugin version
e.g. v24.5.1 (please try latest version)
Steps to reproduce
yarn add intl-tel-input
import IntlTelInput from 'intl-tel-input/reactWithUtils';
=> It throw errorCannot find module 'intl-tel-input/reactWithUtils' or its corresponding type declarations.
import IntlTelInput from 'intl-tel-input/intlTelInputWithUtils'
=> It throw 'IntlTelInput' cannot be used as a JSX component.Expected behaviour
Expect to import the react version of intl-tel-input as IntlTelInput
Initialisation options
I'm currently using reactWithUtils