samuelnygaard / ng2-timezone-selector

A simple Angular module to create a timezone selector using moment-timezone.
https://samuelnygaard.github.io/ng2-timezone-selector/
MIT License
12 stars 12 forks source link

ERROR TypeError: "this.allTimezones.find(...) is undefined" #15

Open gkovacs81 opened 5 years ago

gkovacs81 commented 5 years ago

Hi,

I get this error message:

ERROR TypeError: "this.allTimezones.find(...) is undefined" triggerChangeEvent http://192.168.0.2:4200/vendor.js:186903:37 set http://192.168.0.2:4200/vendor.js:186834:17 updateProp http://192.168.0.2:4200/vendor.js:83316:5 checkAndUpdateDirectiveInline http://192.168.0.2:4200/vendor.js:83079:19 checkAndUpdateNodeInline http://192.168.0.2:4200/vendor.js:84374:20 checkAndUpdateNode http://192.168.0.2:4200/vendor.js:84336:16 debugCheckAndUpdateNode http://192.168.0.2:4200/vendor.js:84970:19 debugCheckDirectivesFn http://192.168.0.2:4200/vendor.js:84930:13 View_ClockComponent_1 ng:///AppModule/ClockComponent.ngfactory.js:307:5 debugUpdateDirectives http://192.168.0.2:4200/vendor.js:84922:12 checkAndUpdateView http://192.168.0.2:4200/vendor.js:84318:5 callViewAction http://192.168.0.2:4200/vendor.js:84559:21 execEmbeddedViewsAction http://192.168.0.2:4200/vendor.js:84522:17 checkAndUpdateView http://192.168.0.2:4200/vendor.js:84319:5 callViewAction http://192.168.0.2:4200/vendor.js:84559:21 execComponentViewsAction http://192.168.0.2:4200/vendor.js:84501:13 checkAndUpdateView http://192.168.0.2:4200/vendor.js:84324:5 callViewAction http://192.168.0.2:4200/vendor.js:84559:21 execEmbeddedViewsAction http://192.168.0.2:4200/vendor.js:84522:17 checkAndUpdateView http://192.168.0.2:4200/vendor.js:84319:5 callViewAction http://192.168.0.2:4200/vendor.js:84559:21 execEmbeddedViewsAction http://192.168.0.2:4200/vendor.js:84522:17 checkAndUpdateView http://192.168.0.2:4200/vendor.js:84319:5 callViewAction http://192.168.0.2:4200/vendor.js:84559:21 execComponentViewsAction http://192.168.0.2:4200/vendor.js:84501:13 checkAndUpdateView http://192.168.0.2:4200/vendor.js:84324:5 callWithDebugContext http://192.168.0.2:4200/vendor.js:85188:22 debugCheckAndUpdateView http://192.168.0.2:4200/vendor.js:84890:12 detectChanges http://192.168.0.2:4200/vendor.js:82699:13 tick http://192.168.0.2:4200/vendor.js:79130:58 tick http://192.168.0.2:4200/vendor.js:79130:13 next http://192.168.0.2:4200/vendor.js:79021:99 invoke http://192.168.0.2:4200/polyfills.js:3268:17 onInvoke http://192.168.0.2:4200/vendor.js:78398:24 invoke http://192.168.0.2:4200/polyfills.js:3267:17 run http://192.168.0.2:4200/polyfills.js:3018:24 run http://192.168.0.2:4200/vendor.js:78312:16 next http://192.168.0.2:4200/vendor.js:79021:69 schedulerFn http://192.168.0.2:4200/vendor.js:74613:36 tryOrUnsub http://192.168.0.2:4200/vendor.js:188656:13 next http://192.168.0.2:4200/vendor.js:188594:17 _next http://192.168.0.2:4200/vendor.js:188537:9 next http://192.168.0.2:4200/vendor.js:188514:13 next http://192.168.0.2:4200/vendor.js:188279:25 emit http://192.168.0.2:4200/vendor.js:74597:54 checkStable http://192.168.0.2:4200/vendor.js:78367:13 onLeave http://192.168.0.2:4200/vendor.js:78434:5 onInvokeTask http://192.168.0.2:4200/vendor.js:78392:17 invokeTask http://192.168.0.2:4200/polyfills.js:3300:17 runTask http://192.168.0.2:4200/polyfills.js:3068:28 invokeTask http://192.168.0.2:4200/polyfills.js:3376:24 invoke http://192.168.0.2:4200/polyfills.js:3365:28 timer http://192.168.0.2:4200/polyfills.js:4934:17 ClockComponent.html:42:10 View_ClockComponent_1 ClockComponent.html:42:10 ./nodemodules/@angular/core/fesm5/core.js/DebugContext.prototype.logError core.js:24041 ./node_modules/@angular/core/fesm5/core.js/ErrorHandler.prototype.handleError core.js:15762 ./node_modules/@angular/core/fesm5/core.js/ApplicationRef.prototype.tick/< core.js:18028:54 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke zone.js:388 ./node_modules/zone.js/dist/zone.js/</Zone.prototype.run zone.js:138 ./node_modules/@angular/core/fesm5/core.js/NgZone.prototype.runOutsideAngular core.js:17248 ./node_modules/@angular/core/fesm5/core.js/ApplicationRef.prototype.tick core.js:18028 next/< core.js:17912:97 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke zone.js:388 onInvoke core.js:17289 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke zone.js:387 ./node_modules/zone.js/dist/zone.js/</Zone.prototype.run zone.js:138 ./node_modules/@angular/core/fesm5/core.js/NgZone.prototype.run core.js:17203 next core.js:17912:67 ./node_modules/@angular/core/fesm5/core.js/EventEmitter.prototype.subscribe/schedulerFn< core.js:13504:34 ./node_modules/rxjs/_esm5/internal/Subscriber.js/SafeSubscriber.prototype.tryOrUnsub Subscriber.js:196 ./node_modules/rxjs/_esm5/internal/Subscriber.js/SafeSubscriber.prototype.next Subscriber.js:134 ./node_modules/rxjs/_esm5/internal/Subscriber.js/Subscriber.prototype._next Subscriber.js:77 ./node_modules/rxjs/_esm5/internal/Subscriber.js/Subscriber.prototype.next Subscriber.js:54 ./node_modules/rxjs/_esm5/internal/Subject.js/Subject.prototype.next Subject.js:47 ./node_modules/@angular/core/fesm5/core.js/EventEmitter.prototype.emit core.js:13488:52 checkStable core.js:17258 onLeave core.js:17325 onInvokeTask core.js:17283 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invokeTask zone.js:420 ./node_modules/zone.js/dist/zone.js/</Zone.prototype.runTask zone.js:188 ./node_modules/zone.js/dist/zone.js/</ZoneTask.invokeTask zone.js:496 ZoneTask/this.invoke zone.js:485 timer

The module works fine on every other systems, I see this error only on my android phone with Firefox browser. (Desktop Chrome/Firefox OK, phone Chrome OK.)

Could you please help me how can I solve this issue? Let me know if you need info!

Thanks