我使用Extjs 5,sencha cmd 5和extjs sencha图表。Sencha应用程序生成生产成功,但生产页面无法加载.js未找到错误
'app'目录中我的应用程序的index.html工作正常,sencha应用程序成功构建。 当我去到生产包装加载生产的index.html,控制台给我的错误“.JS没有发现”,下面的日志:
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,我的煎茶CMD版本是5.1.3.61。 我已经搜索了几个小时的答案。有人建议使用'sencha应用程序构建测试',并且我也测试了构建成功。我真的不知道我的应用程序问题在哪里!
您的堆栈跟踪的第一行有一个“推荐”类,其中'.js'在斜线后面。有可能你有拼写错误吗?或者可能缺少'require'依赖项。 – arthurakay
我相信这是一些依赖缺失。问题是我不知道哪个丢失。在开发模式中没有出现错误。大楼也成功了。 – happyyangyuan
在开发过程中,您是否在浏览器控制台中看到关于同步加载文件的日志? – arthurakay