Extensible.log is undefined

201 views Asked by At

I am trying to get the Calendar Pro from Extensible to work.

if I do everything as the example says here, I get an undefined for the log function on Extensible.js :

enter image description here

However everything looks alright in my code :

Ext.Loader.setConfig({
    enabled: true,
    disableCaching: false,
    paths: {
        "Extensible": "js/lib/extensible-1.5.2/src",
        "Extensible.example": "js/lib/extensible-1.5.2/examples"
    }
});
Ext.require([

    'Extensible.calendar.CalendarPanel',
    'Extensible.calendar.data.MemoryEventStore',
    'Extensible.calendar.CalendarPanel',
    'Extensible.example.calendar.data.Events'
]);

Both the src and the examples paths are correct.

My Extinsible folder structure sits next to the extjs src like this :

enter image description here

It seems like I am missing something or Extensible is not yet being initialised properly.

2

There are 2 answers

0
pherris On BEST ANSWER

Looks like you just forgot to include the Extensible.js by adding it to your requires statement:

Ext.require([
    'Extensible.Extensible', //here
    'Extensible.calendar.CalendarPanel',
    'Extensible.calendar.data.MemoryEventStore',
    'Extensible.calendar.CalendarPanel',
    'Extensible.example.calendar.data.Events'
]);

This will include the main Extinsible.js file as well as the calendar and example files.

2
Brian Moeskau On

As mentioned on the support forums:

The Extensible.log error typically means that you are using the source code from Github without compiling it first. Either run the build script per the README file, or stick to the download zip containing the pre-built files.

If you are using a properly-built version of the framework and still getting this error then you might provide more details about how you set things up.