Ngx-bootstrap: Datepicker is not working for me

Created on 27 May 2018  路  6Comments  路  Source: valor-software/ngx-bootstrap

ERROR TypeError: Cannot read property 'schedule' of undefined
at ObserveOnSubscriber.scheduleMessage (observeOn.js:99)
at ObserveOnSubscriber._error (observeOn.js:105)
at ObserveOnSubscriber.Subscriber.error (Subscriber.js:108)
at BehaviorSubject.Observable._trySubscribe (Observable.js:177)
at BehaviorSubject.Subject._trySubscribe (Subject.js:97)
at BehaviorSubject.Observable.subscribe (Observable.js:160)
at ObserveOnOperator.call (observeOn.js:74)
at AnonymousSubject.Observable.subscribe (Observable.js:157)
at ScanOperator.call (scan.js:72)
at AnonymousSubject.Observable.subscribe (Observable.js:157)
screenshot 3

comp(datepicker)

Most helpful comment

if angular <6:

npm uninstall ngx-bootstrap
npm install [email protected] --save

All 6 comments

This error you get with the latest version of ngx-bootstrap when you are not using angular 6.0.0 or higher. You could use an older version of ngx-bootstrap or upgrade angular.

Maybe another solution for ngx-bootstrap to be compatible for more angular versions: use the rxjs-compat library

Which version of ngx-bootstrap works for datepicker

do any one have any solution for this

if angular <6:

npm uninstall ngx-bootstrap
npm install [email protected] --save

Thanks solved.

It solved my problem,at the time I was using Angular 4! Thanks mate

Was this page helpful?
0 / 5 - 0 ratings