Open Rebal67 opened 4 years ago
Same
Following this, I downgraded my package version to 4.0.3 and the error went away. This is a temporary solution until the author issue a fix.
I'm having the same problem with version 5.0.3 of the library. I've managed to trace it back to:
datePicker.js:
_watchStateChanges() { const datepickerStateChanged = this.datepicker ? this.datepicker.stateChanges : of(); const inputStateChanged = this.datepicker && this.datepicker.datepickerInput ? this.datepicker.datepickerInput.stateChanges : of(); const datepickerToggled = this.datepicker ? merge(this.datepicker.openedStream, this.datepicker.closedStream) : of(); this._stateChanges.unsubscribe(); this._stateChanges = merge(this._intl.changes, datepickerStateChanged, inputStateChanged, datepickerToggled).subscribe(() => this._changeDetectorRef.markForCheck()); }
this.datepicker.stateChanges appears to be undefined. No real idea how this is possible yet, nor if this is as intended. But the merge call eventually runs in the undefined bug, and since this is the only variable going in there which is undefined, it stands to reason that this might be the culprit.
Same issue as reported in #170, There is some more info there - as well as workaround.
I might be getting the same error.
with angular 10.2.1