You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error bellow is throw but NbDateFnsDateModule is imported :
Can't format native date. To use custom formatting you have to install @nebular/moment or
@nebular/date-fns package and import NbMomentDateModule or NbDateFnsDateModule accordingly.
NbBasePicker.prototype.ngOnChanges = function () {
if (this.dateService instanceof NbNativeDateService && this.format) {
throw new Error('Can\'t format native date. To use custom formatting you have to install @nebular/moment or ' +
'@nebular/date-fns package and import NbMomentDateModule or NbDateFnsDateModule accordingly.' +
'More information at "Formatting issue" ' +
'https://akveo.github.io/nebular/docs/components/datepicker/overview#nbdatepickercomponent');
}
};
Maybe because NbDateFnsDateService extends NbNativeDateService ?
Issue type
I'm submitting a ... (check one with "x")
Issue description
Hello,
Error bellow is throw but NbDateFnsDateModule is imported :
Can't format native date. To use custom formatting you have to install @nebular/moment or
@nebular/date-fns package and import NbMomentDateModule or NbDateFnsDateModule accordingly.
But not if I import NbMomentDateModule .
this error is throw in datepicker component :
Maybe because NbDateFnsDateService extends NbNativeDateService ?
Thank's
Thomas
Angular, Nebular
The text was updated successfully, but these errors were encountered: