gauravsoni119 / ng2-tel-input

MIT License
55 stars 56 forks source link

ERROR TypeError: window.intlTelInput is not a function #55

Closed akvaliya closed 4 years ago

akvaliya commented 5 years ago

Getting below error with "core-js": "^3.2.1"

ERROR TypeError: window.intlTelInput is not a function
    at Ng2TelInput.push../node_modules/ng2-tel-input/src/ng2-tel-input.js.Ng2TelInput.ngOnInit (ng2-tel-input.js:41)
    at checkAndUpdateDirectiveInline (core.js:31909)
    at checkAndUpdateNodeInline (core.js:44366)
    at checkAndUpdateNode (core.js:44305)
    at debugCheckAndUpdateNode (core.js:45327)
    at debugCheckDirectivesFn (core.js:45270)
    at Object.eval [as updateDirectives] (MaterialIntlTelInputComponent.html:5)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:45258)
    at checkAndUpdateView (core.js:44270)
    at callViewAction (core.js:44636)
gctom57 commented 5 years ago

Hello,

I also got this error and to fix it I had to update my version of intl-tel-input to version 14 or newer.

Tom'

akvaliya commented 4 years ago

Yes. Was the same issue. Thanks.