jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers
https://intl-tel-input.com
MIT License
7.54k stars 1.94k forks source link

fix: Reorder exports to avoid "Error: Module not found: Error: Default condition should be last one" #1564

Closed mpalourdio closed 4 months ago

mpalourdio commented 4 months ago

While testing the very latest release, I have been caught with

Error: Module not found: Error: Default condition should be last one

Looks like the ordering matters. After moving, them, the error is gone. This is so intuitive, isn't it ?

https://www.google.com/search?q=Module+not+found%3A+Error%3A+Default+condition+should+be+last+one

jackocnr commented 4 months ago

Thanks

jackocnr commented 4 months ago

Released in v21.1.1