View Full Version : Error when compiling project with calendar

10 Jan 2013, 7:55 AM
Hi all, maybe it's really simple but i'm stuck on this and didn't find the answer in the history

I'm using the calendar in a MVC structure, but when I want to use the SDK tools to compile it, it send me back an error :

required by [path]/DayBody.js
Failed to find any files for [path]/EventMappings

And it seems that the EventMapping object use Ext.ns and not Ext.define

What do I have to change, or add, to make this works ?
Thanks in advance

10 Jan 2013, 11:12 AM
No one used the calendar with the SDK Tools ? I really need help one this one I don't know how to solve that

11 Jan 2013, 6:24 AM
Ok, maybe I found something.

To fix the compilation issue, I replace the Ext.ns and the static field by a Ext,define for CalendarMappings and EventMappings

Ext.define('Ext.calendar.data.CalendarMappings', {
singleton: true,

instead of


Ext.calendar.data.CalendarMappings = {

Buidl is fine now but I have an error in AbstractCalendar line 653

evStart = data[M.StartDate.name].getTime(),
-->Uncaught TypeError: Cannot call method 'getTime' of undefined

Can someone help me, I really need to deliver something for today and I'm stuck ><