我使用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