Results 1 to 3 of 3

Thread: [FIXED-EXTJSIV-2519] When creating a store, fails silently if model doesn't exist.

    You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member dogomatic's Avatar
    Join Date
    Aug 2007

    Default [FIXED-EXTJSIV-2519] When creating a store, fails silently if model doesn't exist.

    I was doing this in an MVC app:

    return Ext.create('', {
        autoLoad: true,
        model: 'MyModel',
        proxy: {
            type: 'ajax',
            url : myurl,
            reader: {
                type: 'json',
                root: 'mymodels'
    and getting an error from being undefined in data/Server.js:223

    Turns out it was because I should have used the full path of the model (MyApp.model.MyModel). Consistency of use for full path vs class name only is another issue, but what I think could be improved is having it fail loudly when Ext.ModelManager.getModel returns undefined (at least in this context). This would help catch typos too.

    Otherwise you have to trace back from the error you got to where it actually went wrong.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia


    I've added a warning that will show in debug mode if you try and create a store with a model (implicit or explicit).
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha Premium User SebTardif's Avatar
    Join Date
    Feb 2011
    Cambridge, MA


    Thanks for the warning. If Sencha developers get used to improve diagnostic for each error investigated, the learning curve will be lower.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts