Open zackdotcomputer opened 2 years ago
Hmm, that's weird.
See if using the original functions from libphonenumber-js
works:
import {
isValidPhoneNumber,
isPossiblePhoneNumber,
getCountryCallingCode,
getCountries,
isSupportedCountry
} from 'libphonenumber-js/min'
I cannot fully explain this yet, but here's the observed behavior:
next build
and as a developmentnext dev
.This also happens if you use
isValidPhoneNumber
instead.I'm unclear how this could be happening just from bringing those functions into scope even after having read through the code. If you have any ideas on how to debug further or fix please let me know.