Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have the following references in my app.json file

"js": [
    {
        "path": "https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js",
        "remote": true
    },
    {"path": "resources/debug.js"},
    {"path": "resources/Resources.js"}
],

The resources/Resources.js file contains the following code:

console.log("Resources.js loaded.")
var MCC = MCC || {};
MCC.Strings = (function () {
//private
//public
return {
         myProp: "myValue"
};
})();

However, the file Resources.js never seems to load. Certainly the call to console.log('Resources.js loaded.") is never made.

I admit, I don't really understand the app.json file very well, but I thought the references in this file would be loaded automatically. Any ideas why this is not the case?

share|improve this question
add comment

1 Answer

I had a similar problem. The resources, which are defined in app.json working only for sencha touch apps, but not for ExtJS apps. I was able do load the files which I need as commented require declarations at the beginning of the man view:

// @require /path-to/external-file.js
share|improve this answer
 
I wasn't able to get this to work. –  threed Jul 16 '13 at 15:40
 
Are you using sencha cmd? –  Darin Kolev Jul 16 '13 at 15:49
 
Yes. Does this not work with Sencha Cmd? –  threed Jul 16 '13 at 15:54
 
It works for me with the latest Version of sencha cmd. –  Darin Kolev Jul 16 '13 at 16:07
 
Is there any documentation for this that I can reference? I'm having trouble finding it on their website. –  threed Jul 16 '13 at 16:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.