react-phone-number-input icon indicating copy to clipboard operation
react-phone-number-input copied to clipboard

(Webpack) export 'isPossiblePhoneNumber' was not found in 'react-phone-number-input'

Open alexsegura opened this issue 5 years ago • 4 comments

Hi,

It happens in 2.5.x & 3.x. I'm using Webpack. You can see the source code here

I tried using like this:

import { isPossiblePhoneNumber } from 'react-phone-number-input'
Capture d’écran 2020-01-07 à 12 53 23

alexsegura avatar Jan 07 '20 12:01 alexsegura

Strange warning. My tests show that isPossiblePhoneNumber is exported.

catamphetamine avatar Jan 07 '20 12:01 catamphetamine

Try to reinstall lib.

DinAlla avatar Jan 14 '20 09:01 DinAlla

Try changing it to import { isPossiblePhoneNumber } from 'react-phone-number-input/input'

cgimenes avatar May 12 '23 20:05 cgimenes

Use libphonenumber-js instead

On Fri, 12 May 2023 at 23:35, Marcelo Gimenes de Oliveira < @.***> wrote:

Maybe change it to import { isPossiblePhoneNumber } from 'react-phone-number-input/input'

— Reply to this email directly, view it on GitHub https://github.com/catamphetamine/react-phone-number-input/issues/310#issuecomment-1546261644, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADUP32CMUYT666I5TGBM4TXF2NJNANCNFSM4KDYIW7A . You are receiving this because you commented.Message ID: @.***>

catamphetamine avatar May 12 '23 23:05 catamphetamine