执行时出现以下错误sencha app build
[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
从/extjs-build/
Ext.Loader
正确处理问题 ( /extjs-build/app/app.js
)
Ext.Loader.setConfig({
paths: {
'PM': './extjs-build/app'
}
});
Ext.application('PM.app.Application');
有什么建议么?