我正在使用 Extjs 5、sencha cmd 5 和 extjs sencha 图表。
我的应用程序在“应用程序”目录中的 index.html 工作正常,并且 sencha 应用程序构建成功。当我去生产包加载生产index.html时,控制台给我错误'.js not found',日志如下:
GET http://localhost:8080/build/production/recommendation/.js?_dc=1431411762018 404 (Not Found)
Ext.Boot.Ext.Boot.d.fetch
Ext.Boot.Ext.Boot.r.fetch
Ext.Boot.Ext.Boot.r.loadSync
Ext.Boot.Ext.Boot.r.load
Ext.Boot.Ext.Boot.k.loadEntries
Ext.Boot.Ext.Boot.d.processRequest
Ext.Boot.Ext.Boot.d.loadSync
Ext.Boot.Ext.Boot.d.load
Ext.apply.loadScripts
Ext.apply.load
Ext.apply.require
Ext.apply.syncRequire
Ext.Function.o.alias
Ext.ClassManager.Ext.apply.create
Ext.ClassManager.Ext.apply.instantiateByAlias
Ext.apply.factory
Ext.cmd.derive.applyAxes
k
Ext.Configurator.configure
Ext.Base.r.addMembers.initConfig
Ext.cmd.derive.constructor
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
(anonymous function)
Ext.ClassManager.Ext.apply.create
Ext.cmd.derive.loginSuccess
Ext.widget.submit.success
Ext.apply.callback
Ext.cmd.derive.afterAction
Ext.cmd.derive.onSuccess
Ext.apply.callback
Ext.cmd.derive.onComplete
Ext.cmd.derive.onStateChange
Ext.Function.o.bind
Uncaught TypeError: object is not a function
(anonymous function)
Ext.ClassManager.Ext.apply.create
Ext.ClassManager.Ext.apply.instantiateByAlias
Ext.apply.factory
Ext.cmd.derive.applyAxes
k
Ext.Configurator.configure
Ext.Base.r.addMembers.initConfig
Ext.cmd.derive.constructor
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
Ext.ClassManager.Ext.apply.widget
Ext.cmd.derive.create
Ext.cmd.derive.lookupComponent
Ext.cmd.derive.privates.prepareItems
Ext.cmd.derive.add
Ext.cmd.derive.initItems
Ext.cmd.derive.initItems
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.initComponent
Ext.cmd.derive.constructor
ai
(anonymous function)
Ext.ClassManager.Ext.apply.create
Ext.cmd.derive.loginSuccess
Ext.widget.submit.success
Ext.apply.callback
Ext.cmd.derive.afterAction
Ext.cmd.derive.onSuccess
Ext.apply.callback
Ext.cmd.derive.onComplete
Ext.cmd.derive.onStateChange
Ext.Function.o.bind
我的 Extjs 版本是 5.1,我的 sencha cmd 版本是 5.1.3.61。我已经用谷歌搜索了几个小时的答案。有人建议使用“sencha app build testing”,我也成功测试了构建。我真的不知道我的应用程序问题出在哪里!