gauravsoni119 / ng2-tel-input

MIT License
56 stars 57 forks source link

Cannot use 'in' operator to search for 'intlTelInputUtils' in undefined in Angular 8 #54

Closed akvaliya closed 4 years ago

akvaliya commented 5 years ago

Getting below error after upgrading project to angular 8

Uncaught TypeError: Cannot use 'in' operator to search for 'intlTelInputUtils' in undefined
    at m (utils.js:1)
    at utils.js:443
    at Object../node_modules/ng2-tel-input/node_modules/intl-tel-input/build/js/utils.js (utils.js:447)
    at __webpack_require__ (bootstrap:84)
    at Module../node_modules/ng2-tel-input/src/ng2-tel-input.js (ng2-tel-input.js:1)
    at __webpack_require__ (bootstrap:84)
    at Module../node_modules/ng2-tel-input/src/ng2-tel-input.module.js (ng2-tel-input.module.js:1)
    at __webpack_require__ (bootstrap:84)
    at Module../node_modules/ng2-tel-input/ng2-tel-input.js (ng2-tel-input.js:1)
    at __webpack_require__ (bootstrap:84)
nadeemse commented 5 years ago

Facing the same issue, any help ?

zbahadir commented 5 years ago

Hello, Javascript files are not loading at the right time.

Define your files in angular.json.

angularjs

Rebuild the application. ionic build.

İmportant: If you do not rebuild, the angular.json content will not be effective.

I hope it works.