New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"TypeError: Object(...) is not a function" on Angular 5.2.11 #11
Comments
Yes, you're right. That's because Rxjs was updated to 6 version, so you have to update your angular. |
Or you can use an earlier version of timepicker, if those features are enough for you |
Thank you for mentioning this. I've tried Downgrading to
I might have to do that for my current project, but for now I would like to avoid that if possible. I found this library by specifically looking for something that is supposed to work with angular 5 and this one said that it's compatible with angular 4+. I see that you already updated the readme - at least noone else will fall into the same trap as I did :D You may close this issue if you wish, thanks! |
Sorry for confusing you, I forgot to update the readme ) |
I'm having the same error with the latest version of this package, though I'm using angular 7.2,5 and rxjs 6.4.0. I include |
which version of timepicker do you use ? |
This was with 3.3.0. |
I rolled back to 3.0.0, and it works fine (with an external dependency of luxon). |
I appreciate your work. Just any FYI @angular/core @7.2.15 and ngx-material-timepicker@4.0.0 seem to be not be compatible at this time as well. Here is the error:
|
@phare2013 I know. v4.0.0 works with angular 8. You have to downgrade your package. Look at CHANGELOG.md |
Thanks! |
I've installed
ngx-material-timepicker@2.2.3
.Added:
And then added:
I get this error in the console upon opening the page where the timepicker would show up:
ngx-material-timepicker.js:152
refers to this line (this is the compiled versionvendor.bundle.js
):Which was compiled from this: ngx-material-timepicker.component.ts#L60
My theory:
I think the issue may be related to the fact that angular 5.2.11 uses rxjs@5.5.5 and this library and
angular@6
usesrxjs@6
. The behaviour ofmerge
might be different or might be missing completely in the version used byangular@5.2.11
.Am I using this library correctly? Is angular5 still supported?
The text was updated successfully, but these errors were encountered: