Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2011
    Location
    Northern California
    Posts
    228
    Vote Rating
    16
    BillHubbard has a spectacular aura about BillHubbard has a spectacular aura about BillHubbard has a spectacular aura about

      0  

    Default [4.1.1] ExtJS is complaining about missing files that aren't missing

    [4.1.1] ExtJS is complaining about missing files that aren't missing


    I occasionally get an error in the console:

    Error: The following classes are not declared even if their files have been loaded: ''. Please check the source code of their corresponding files for possible typos: '

    When I am able to catch the condition (which is intermittent), I see the following code in ext-dev.js for an onFileLoaded method:

    Code:
                    if (missingClasses.length < 1) {
                        return;
                    }
    
                    missingClasses = Ext.Array.filter(Ext.Array.unique(missingClasses), function(item) {
                        return !requiresMap.hasOwnProperty(item);
                    }, Loader);
    
                    // HERE!
    
                    for (i = 0,ln = missingClasses.length; i < ln; i++) {
                        missingPaths.push(classNameToFilePathMap[missingClasses[i]]);
                    }
    
                    throw new Error("The following classes are not declared even if their files have been " +
                        "loaded: '" + missingClasses.join("', '") + "'. Please check the source code of their " +
                        "corresponding files for possible typos: '" + missingPaths.join("', '"));
                }
    At the point marked "HERE!", missingClasses.length is zero, whereas prior to the assignment immediately above it, it was 2.
    Apparently, there needs to be a check in here to return if missingClasses.length is zero, just as there is before missingClasses got redefined.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,119
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Is there a way I can reproduce this?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    May 2011
    Location
    Northern California
    Posts
    228
    Vote Rating
    16
    BillHubbard has a spectacular aura about BillHubbard has a spectacular aura about BillHubbard has a spectacular aura about

      0  

    Default


    I wish I knew.

  4. #4
    Ext JS Premium Member
    Join Date
    May 2011
    Location
    Northern California
    Posts
    228
    Vote Rating
    16
    BillHubbard has a spectacular aura about BillHubbard has a spectacular aura about BillHubbard has a spectacular aura about

      0  

Tags for this Thread