angular-material-components
angular-material-components copied to clipboard
ERROR TypeError: You provided 'undefined' where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
The package was working just fine and after a while stop working throwing the error in the title, I saw this error was reported in the past as well, and supposed to be fixed but is happening to me again.
and this error when I click on the datetimepicker:
core.js:6141 ERROR TypeError: this.datepicker.open is not a function at MatDatepickerToggle._open (datepicker.js:3463) at MatDatepickerToggle_Template_button_click_0_listener (datepicker.js:3495) at executeListenerWithErrorHandling (core.js:15192) at wrapListenerIn_markDirtyAndPreventDefault (core.js:15227) at HTMLButtonElement. (platform-browser.js:582) at ZoneDelegate.invokeTask (zone-evergreen.js:399) at Object.onInvokeTask (core.js:28499) at ZoneDelegate.invokeTask (zone-evergreen.js:398) at Zone.runTask (zone-evergreen.js:167) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:480)
packages: "@angular-material-components/datetime-picker": "^6.0.2", "@angular/animations": "^11.1.1", "@angular/cdk": "^11.1.1", "@angular/common": "^11.1.1", "@angular/compiler": "^11.1.1", "@angular/core": "^11.1.1", "@angular/forms": "^11.1.1", "@angular/http": "^8.0.0-beta.10", "@angular/material": "^11.1.1", "@angular/platform-browser": "^11.1.1", "@angular/platform-browser-dynamic": "^11.1.1", "@angular/router": "^11.1.1",
I am getting the same error..
With that said, I get this error just after addressing a different error with using [ngDefaultControl]
"@angular-material-components/datetime-picker": "^6.0.3",
"@angular/animations": "^10.1.2",
"@angular/cdk": "^10.2.1",
"@angular/common": "^10.1.2",
"@angular/compiler": "^10.1.2",
"@angular/core": "^10.1.2",
"@angular/flex-layout": "^10.0.0-beta.32",
"@angular/forms": "^10.1.2",
"@angular/material": "^10.2.1",
"@angular/platform-browser": "^10.1.2",
"@angular/platform-browser-dynamic": "^10.1.2",
"@angular/router": "^10.1.2",
"@aspnet/signalr": "^1.0.3",
@bladmoreno I see that you are using datetime-picker version 6.x with Angular 11. The version 6.x supports Angular 12. For Angular 11, can you use the datetime-picker version 5.x ?
I am getting the same error..
With that said, I get this error just after addressing a different error with using
[ngDefaultControl]
"@angular-material-components/datetime-picker": "^6.0.3", "@angular/animations": "^10.1.2", "@angular/cdk": "^10.2.1", "@angular/common": "^10.1.2", "@angular/compiler": "^10.1.2", "@angular/core": "^10.1.2", "@angular/flex-layout": "^10.0.0-beta.32", "@angular/forms": "^10.1.2", "@angular/material": "^10.2.1", "@angular/platform-browser": "^10.1.2", "@angular/platform-browser-dynamic": "^10.1.2", "@angular/router": "^10.1.2", "@aspnet/signalr": "^1.0.3",
Can you use datetime-picker version 4.x for Angular 10 ? The version 6.x supports only Angular 12.
@bladmoreno I see that you are using datetime-picker version 6.x with Angular 11. The version 6.x supports Angular 12. For Angular 11, can you use the datetime-picker version 5.x ?
Perfect, I will try the version 5 them, thank you
Downgrading to version 4.x for Angular 10 resolved my issue. TY!
Updating the angular version to 12 solved my issue.
"@angular-material-components/datetime-picker": "^5.1.1",
"@angular/animations": "^11.2.0",
"@angular/cdk": "^11.2.0",
"@angular/common": "^11.2.0",
"@angular/compiler": "^11.2.0",
"@angular/core": "^11.2.0",
"@angular/flex-layout": "^12.0.0-beta.34",
"@angular/forms": "^11.2.0",
"@angular/localize": "^11.2.0",
"@angular/material": "^11.2.0",
"@angular/material-moment-adapter": "^11.2.0",
"@angular/platform-browser": "^11.2.0",
"@angular/platform-browser-dynamic": "^11.2.0",
"@angular/router": "^11.2.0",
I am using ^5.1.1 with angular ^11.2.0 and I am getting the error:
ERROR TypeError: this.datepicker.open is not a function
Downgrading to version 4.x for Angular 10 resolved my issue. TY!
Did the same but error remains !!