-
13 Feb 2013 3:46 PM #1
[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:
At the point marked "HERE!", missingClasses.length is zero, whereas prior to the assignment immediately above it, it was 2.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("', '")); }
Apparently, there needs to be a check in here to return if missingClasses.length is zero, just as there is before missingClasses got redefined.
-
13 Feb 2013 8:30 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,119
- Vote Rating
- 453
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.
-
14 Feb 2013 10:29 AM #3
I wish I knew.
-
17 Apr 2013 5:11 PM #4
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote