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
Ionic version: (check one with "x")
[ ] 2.x
[ ] 3.x
[ ] 4.x
[ - ] 5.x
Ion2-calendar mode: (check one with "x")
[ ] components mode
[ ] modal mode
I'm submitting a ... (check one with "x")
[ - ] bug report
[ ] feature request
[ ] help me
Current behavior:
The error comes from momentjs package which I believe must be updated and optimised for Ionic 5.
Expected behavior:
Steps to reproduce:
Related code:
insert short code snippets here
I ran the following code in Ionic 5 as you'd expect from your documentation:
` async openCalendar() {
const options: CalendarModalOptions = {
pickMode: 'range',
title: 'Range',
color: 'danger'
};
let myCalendar = await this.modalCtrl.create({
component: CalendarModal,
componentProps: { options }
});
myCalendar.present();
}`
Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here
After running the above code snippet from the documentation, this is an error I got below: ERROR TypeError: moment is not a function at CalendarModal.push../node_modules/ion2-calendar/dist/components/calendar.modal.js.CalendarModal.init (calendar.modal.js:47) at CalendarModal.push../node_modules/ion2-calendar/dist/components/calendar.modal.js.CalendarModal.ngOnInit (calendar.modal.js:31) at checkAndUpdateDirectiveInline (core.js:31910) at checkAndUpdateNodeInline (core.js:44367) at checkAndUpdateNode (core.js:44306) at debugCheckAndUpdateNode (core.js:45328) at debugCheckDirectivesFn (core.js:45271) at Object.eval [as updateDirectives] (CalendarModal_Host.ngfactory.js? [sm]:1) at Object.debugUpdateDirectives [as updateDirectives] (core.js:45259) at checkAndUpdateView (core.js:44271)
I then figured that the dependencies haven't been updated in a while, especially with some changes in Ionic 5. I would like to request that you update this very important calendar in Ionic to be also used in Ionic 5.
The text was updated successfully, but these errors were encountered:
Ionic version: (check one with "x")
[ ] 2.x
[ ] 3.x
[ ] 4.x
[ - ] 5.x
Ion2-calendar mode: (check one with "x")
[ ] components mode
[ ] modal mode
I'm submitting a ... (check one with "x")
[ - ] bug report
[ ] feature request
[ ] help me
Current behavior:
The error comes from momentjs package which I believe must be updated and optimised for Ionic 5.
Expected behavior:
Steps to reproduce:
Related code:
insert short code snippets here
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):After running the above code snippet from the documentation, this is an error I got below:
ERROR TypeError: moment is not a function at CalendarModal.push../node_modules/ion2-calendar/dist/components/calendar.modal.js.CalendarModal.init (calendar.modal.js:47) at CalendarModal.push../node_modules/ion2-calendar/dist/components/calendar.modal.js.CalendarModal.ngOnInit (calendar.modal.js:31) at checkAndUpdateDirectiveInline (core.js:31910) at checkAndUpdateNodeInline (core.js:44367) at checkAndUpdateNode (core.js:44306) at debugCheckAndUpdateNode (core.js:45328) at debugCheckDirectivesFn (core.js:45271) at Object.eval [as updateDirectives] (CalendarModal_Host.ngfactory.js? [sm]:1) at Object.debugUpdateDirectives [as updateDirectives] (core.js:45259) at checkAndUpdateView (core.js:44271)
I then figured that the dependencies haven't been updated in a while, especially with some changes in Ionic 5. I would like to request that you update this very important calendar in Ionic to be also used in Ionic 5.
The text was updated successfully, but these errors were encountered: