ui-calendar icon indicating copy to clipboard operation
ui-calendar copied to clipboard

TypeError: calendar.fullCalendar is not a function in Meteor 1.2.1

Open ghost opened this issue 9 years ago • 3 comments

been trying to use Angular: ui-calendar with meteor, but get this error.

TypeError: calendar.fullCalendar is not a function at Scope.scope.initCalendar (calendar.js:265) at Object.fn (calendar.js:337) at Scope.$digest (angular.js:15896) at Scope.$apply (angular.js:16160) at bootstrapApply (angular.js:1679) at Object.invoke (angular.js:4523) at doBootstrap (angular.js:1677) at Object.bootstrap (angular.js:1697) at HTMLDocument.onReady (app.js:47) at fire (jquery.js:3143) In meteor packages i habe


angular 1.2.3 angularui:ui-calendar

also tried to use the package inserted directly not using meteor add. but using the calendar.js file (which is different)

Both get the same error.

Tried this: https://github.com/angular-ui/ui-calendar/issues/267

       scope.initCalendar = function () {
                if (!calendar) {
                    calendar = $(elm);
                }
                calendar.fullCalendar(options);
                if (attrs.calendar) {
                    uiCalendarConfig.calendars[attrs.calendar] = calendar;
                }
         };
But is seems this fix doesnt work with meteor and angular-meteor.

Any ideas on how to fix this issue?

ghost avatar Feb 02 '16 18:02 ghost

hello. i have the same issue. Did you find a solution ? Impossible to use ui calendar with meteor angular stack.

Zanzas avatar Aug 30 '16 07:08 Zanzas

I am also facing same issue. can any one help me on this.

veerappanece avatar Mar 10 '17 13:03 veerappanece

I also faced the same issue. Maybe you need to add fullcalendar to the dependencies of the ui.calendar. like this : 'ui.calendar': ['jquery', 'fullcalendar', 'angular'] then done.

liuhuiiris126 avatar May 17 '17 09:05 liuhuiiris126