international-phone-number icon indicating copy to clipboard operation
international-phone-number copied to clipboard

error with angular 1.5 and utils.js

Open kotmatpockuh opened this issue 7 years ago • 6 comments

I have an error about using 'in' intlTelInputUtilsis undefined in utils.js this is undefined...

Uncaught TypeError: Cannot use 'in' operator to search for 'intlTelInputUtils' in undefined

kotmatpockuh avatar Sep 29 '16 08:09 kotmatpockuh

@kotmatpockuh did you ever resolve the issue? having a similar issue

feitla avatar Dec 12 '17 00:12 feitla

so am I, any luck @kotmatpockuh or @feitla ?

ofus avatar Jan 31 '18 16:01 ofus

I am facing the same issue after upgrading my project to Angular 8. Anyone have any idea?

akvaliya avatar Sep 02 '19 16:09 akvaliya

I am also facing the issue with Angular8, any luck with this ?

nadeemse avatar Sep 09 '19 16:09 nadeemse

I had to add the intl-tel-input scripts to my project's angular.json after updating.

"scripts": [
  "node_modules/intl-tel-input/build/js/intlTelInput.js",
  "node_modules/intl-tel-input/build/js/utils.js"
]

In previous versions I think these got loaded automatically, but that doesn't seem to work anymore. 🤷‍♂

mamacdon avatar Sep 10 '19 12:09 mamacdon

@mamacdon Thanks. That was the issue. In previous version intlTelInput.js was not needed to add in angular.json

akvaliya avatar Sep 10 '19 15:09 akvaliya