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

TypeError: i.startsWith is not a function. (In 'i.startsWith("+")', 'i.startsWith' is undefined)

Open rchancey opened this issue 7 years ago • 1 comments

An idea why I would be getting this? no one else seems to complain. I have lodash installed.

The component shows fine but after setting it blows up with the exception

any ideas?

rchancey avatar Feb 01 '19 02:02 rchancey

@rchancey I haven't had time recently to look in to the lib but it seems like a browser compatibility issue. Have a look here (https://www.w3schools.com/jsref/jsref_startswith.asp) and see if you are not using an old browser

sample-usr avatar Feb 26 '19 09:02 sample-usr