Я использую диаграммы sencha Extjs 5, sencha cmd 5 и extjs.
Мое приложение index.html в каталоге 'app' работает нормально, и приложение 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», и я тоже успешно тестирую сборку. Я действительно не знаю, в чем проблема моего приложения!
.js
стоит после косой черты. Возможно, у вас есть орфографические ошибки? Или, может быть, отсутствуетrequire
зависимость. - person arthurakay   schedule 12.05.2015