Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs应用程序不在本地主机上时出现问题_Extjs_Extjs5 - Fatal编程技术网

Extjs应用程序不在本地主机上时出现问题

Extjs应用程序不在本地主机上时出现问题,extjs,extjs5,Extjs,Extjs5,我在本地主机和UAT环境中运行了一个简单的应用程序。最近添加了一个新组件,在本地运行良好 当我将应用程序部署到UAT时,控制台中出现以下两个错误 /widget/label.js?_dc=1482256656320 404 (Not Found) Uncaught TypeError: c is not a constructor(anonymous function) @ VM224:3Ext.ClassManager.Ext.apply.create @ app.js?_dc=148225

我在本地主机和UAT环境中运行了一个简单的应用程序。最近添加了一个新组件,在本地运行良好

当我将应用程序部署到UAT时,控制台中出现以下两个错误

/widget/label.js?_dc=1482256656320 404 (Not Found)

Uncaught TypeError: c is not a constructor(anonymous function) @ VM224:3Ext.ClassManager.Ext.apply.create @ app.js?_dc=1482256653415:1Ext.ClassManager.Ext.apply.widget @ app.js?_dc=1482256653415:1Ext.cmd.derive.create @ app.js?_dc=1482256653415:1Ext.cmd.derive.lookupComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.privates.prepareItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.add @ app.js?_dc=1482256653415:1Ext.cmd.derive.initItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.constructor @ app.js?_dc=1482256653415:1ak @ app.js?_dc=1482256653415:1Ext.ClassManager.Ext.apply.widget @ app.js?_dc=1482256653415:1Ext.cmd.derive.create @ app.js?_dc=1482256653415:1Ext.cmd.derive.lookupComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.lookupComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.privates.prepareItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.add @ app.js?_dc=1482256653415:1Ext.cmd.derive.initItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.constructor @ app.js?_dc=1482256653415:1ak @ app.js?_dc=1482256653415:1Ext.ClassManager.Ext.apply.widget @ app.js?_dc=1482256653415:1Ext.cmd.derive.create @ app.js?_dc=1482256653415:1Ext.cmd.derive.lookupComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.privates.prepareItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.add @ app.js?_dc=1482256653415:1Ext.cmd.derive.initItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.constructor @ app.js?_dc=1482256653415:1ak @ app.js?_dc=1482256653415:1Ext.cmd.derive.applyTabBar @ app.js?_dc=1482256653415:1k @ app.js?_dc=1482256653415:1Ext.Configurator.configure @ app.js?_dc=1482256653415:1Ext.Base.r.addMembers.initConfig @ app.js?_dc=1482256653415:1Ext.cmd.derive.constructor @ app.js?_dc=1482256653415:1ak @ app.js?_dc=1482256653415:1Ext.ClassManager.Ext.apply.widget @ app.js?_dc=1482256653415:1Ext.cmd.derive.create @ app.js?_dc=1482256653415:1Ext.cmd.derive.lookupComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.privates.prepareItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.add @ app.js?_dc=1482256653415:1Ext.cmd.derive.initItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.constructor @ app.js?_dc=1482256653415:1ak @ app.js?_dc=1482256653415:1Ext.ClassManager.Ext.apply.widget @ app.js?_dc=1482256653415:1Ext.cmd.derive.create @ app.js?_dc=1482256653415:1Ext.cmd.derive.lookupComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.privates.prepareItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.add @ app.js?_dc=1482256653415:1Ext.cmd.derive.initItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.initItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.initComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.constructor @ app.js?_dc=1482256653415:1ak @ app.js?_dc=1482256653415:1Ext.ClassManager.Ext.apply.widget @ app.js?_dc=1482256653415:1Ext.cmd.derive.create @ app.js?_dc=1482256653415:1Ext.cmd.derive.lookupComponent @ app.js?_dc=1482256653415:1Ext.cmd.derive.privates.prepareItems @ app.js?_dc=1482256653415:1Ext.cmd.derive.add @ app.js?_dc=1482256653415:1Ext.Ajax.request.success @ app.js?_dc=1482256653415:1Ext.apply.callback @ app.js?_dc=1482256653415:1Ext.cmd.derive.onComplete @ app.js?_dc=1482256653415:1Ext.cmd.derive.onStateChange @ app.js?_dc=1482256653415:1(anonymous function) @ app.js?_dc=1482256653415:1
sencha-app-build
命令已成功完成,本地未出现JS错误


这可能与捆绑应用程序时的生产构建设置有关吗?如果我删除了新组件,则应用程序部署将正常运行。

我没有在新组件的requires数组中包含“Ext.form.Label”。这导致了404,而404又导致了上述第二个错误。

可能是您需要重新构建应用程序。在重建之前,请尝试清除生成文件夹。谢谢提供信息。原来我没有在新组件的requires数组中包含“Ext.form.Label”。这一点现在非常明显,但我不明白为什么本地主机版本中没有错误。如果未声明,我的本地版本是否会自动包含此引用?将来,您还可以尝试
sencha应用程序构建测试
,这将向您显示更多信息。