我收到以下錯誤的文件,當我執行sencha app build
煎茶CMD:無法找到
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExBuild: Failed to find any files for extjs-build\app\app\Application.js::ClassRequire::Object
extjs-build\app\app\Application.js
看起來像
Ext.define('PM.app.Application', {
extend: 'Ext.app.Application',
requires: [
'PM.Object'
]
}
的文件爲PM.Object
類存在。路徑是:extjs-build\app\Object.js
,並與一些額外的功能擴展Ext.Object:
PM.Object = Ext.apply(Ext.Object, {
...: function() {}
}
的extjs-build\.sencha\app\sencha.cfg
文件:
# The path(s) to application javascript sources (comma separated)
app.classpath=${app.dir}/app
我的目錄是這樣的:
/extjs-build/
.sencha/
app/
app/
Application.js
data/
SomeStore.js
app.js
Object.js
ext/
src/
我跑sencha app build
from /extjs-build/
Ext.Loader
處理問題的正確(/extjs-build/app/app.js
)
Ext.Loader.setConfig({
paths: {
'PM': './extjs-build/app'
}
});
Ext.application('PM.app.Application');
有什麼建議?
不,沒有幫助。我在上面添加了我的目錄列表。當我將'/ extjs-build/app/Object.js'移動到'extjs-build/app/app/Object.js'時,Ext.Loader不起作用 – squirrel