ERR无法找到用于depdency参考的文件

时间:2013-11-22 03:24:01

标签: extjs build sencha-touch sencha-touch-2

我已经添加了额外的js文件Fileup.js用于文件上传功能。它工作正常,但在构建时触发此错误。我已将Fileup.js直接放在扩展文件夹下。有什么帮助?

 4:07 [ERR] Failed to find file(s) for depdency reference
 project/app/view/phone/testing.js::ClassRequire::Ext.Fileup

2 个答案:

答案 0 :(得分:0)

确保在app.json

中声明必要的js文件
"js": [
     // the framework here includes sencha-touch.js, bootstrap.js, app.js, etc...
         {
             "path": "(path to your js file)"
         }
     ],

答案 1 :(得分:0)

sencha.cfg我设置了这个并解决了问题

app.classpath=${app.dir}/app.js,${app.dir}/app,${app.dir}/touch/src