mareczek / international-phone-number

AngularJS directive implementing intl-tel-input (https://github.com/Bluefieldscom/intl-tel-input)
139 stars 131 forks source link

error with angular 1.5 and utils.js #114

Open kotmatpockuh opened 8 years ago

kotmatpockuh commented 8 years ago

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

feitla commented 6 years ago

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

ofus commented 6 years ago

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

akvaliya commented 5 years ago

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

nadeemse commented 5 years ago

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

mamacdon commented 5 years ago

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. 🤷‍♂

akvaliya commented 5 years ago

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