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
Javascript Ext JS生产版本未在浏览器中加载_Javascript_Extjs_Frontend_Sencha Cmd - Fatal编程技术网

Javascript Ext JS生产版本未在浏览器中加载

Javascript Ext JS生产版本未在浏览器中加载,javascript,extjs,frontend,sencha-cmd,Javascript,Extjs,Frontend,Sencha Cmd,我正在尝试运行生产构建文件夹中的index.html文件,但出现错误“.js not found”(下面的其他错误)当应用程序加载时。在开发环境和生产环境中使用Sencha CMD时,构建成功编译。这里的解决方案没有多大帮助,因为我们的应用程序有太多视图需要梳理,以查找缺少的包含。有没有快速解决此问题的技巧 Uncaught TypeError: c is not a constructor at eval (eval at getInstantiator (app.js:1), <ano

我正在尝试运行生产构建文件夹中的index.html文件,但出现错误“.js not found”(下面的其他错误)当应用程序加载时。在开发环境和生产环境中使用Sencha CMD时,构建成功编译。这里的解决方案没有多大帮助,因为我们的应用程序有太多视图需要梳理,以查找缺少的包含。有没有快速解决此问题的技巧

Uncaught TypeError: c is not a constructor
at eval (eval at getInstantiator (app.js:1), <anonymous>:3:8)
at Object.create (app.js:1)
at Ext.Inventory.instantiateByAlias (app.js:1)
at Ext.Factory.create (app.js:1)
at ctor.setLayout (app.js:1)
at ctor.getLayout (app.js:1)
at ctor.initComponent (app.js:1)
at new constructor (app.js:1)
at ctor [as self] (app.js:1)
at Object.widget (app.js:1)
uncaughttypeerror:c不是构造函数
在eval(在getInstantiator(app.js:1),:3:8时进行eval)
在Object.create上(app.js:1)
在Ext.Inventory.InstanceByAlias(app.js:1)上
在Ext.Factory.create上(app.js:1)
在ctor.setLayout(app.js:1)
在ctor.getLayout(app.js:1)
在ctor.initComponent(app.js:1)
在新的构造器上(app.js:1)
at[as self](app.js:1)
在Object.widget上(app.js:1)

我怀疑您缺少一些要求。这是一个常见的extjs问题,当它与sencha app watch配合使用时效果良好,但在编译缺少js错误的产品时无法加载。如果使用chrome,请打开调试器(f12)并打开“暂停所有异常”,以帮助诊断您缺少的页面以及需要/导入的页面。基于上述错误,我敢打赌这是一个布局。

通常,您的开发版本会警告您导致生产构建中断的所有事项。但是,警告并没有明确告诉您忽略它将中断pr生产建设


打开应用程序时加载文件时,fiddler会显示什么?您是否只打开index.html文件并希望您的应用程序运行?Dude它需要一些web服务器,如tomcat。或者您可以使用sencha web服务器。请提供网络选项卡屏幕,以便我们知道哪个请求通过了/failTomcat?我会选择httpd相反,如果您没有实际运行任何Java代码作为后端,那么Tejas1991是正确的。当以文件://Uri打开它时,Ext将不会按预期运行。您使用的Sencha CMD和ExtJS的版本是什么?