无法在运行时错误运行Sencha应用

时间:2018-10-23 20:04:19

标签: extjs sencha-cmd

每次我运行sencha应用程序时,都会出现以下错误...

我已将应用程序升级到最新版本,但也未解决问题。

我的计算机上安装了sencha 6.6,但我不完全确定此Sencha应用程序是用什么版本编写的。...没人知道这是什么原因吗?

localhost/:7 GET http://localhost:1841/resources/lib/bootstrap.min.css net::ERR_ABORTED 404 (Not Found)
bootstrap.js:1595 GET http://localhost:1841/ext/build/ext-all-rtl-debug.js?_dc=1540324633621 net::ERR_ABORTED 404 (Not Found)
evaluateLoadElement @ bootstrap.js:1595
loadElement @ bootstrap.js:1509
load @ bootstrap.js:1563
loadEntries @ bootstrap.js:1139
processRequest @ bootstrap.js:724
load @ bootstrap.js:746
onCachedAssetsReady @ bootstrap.js:2264
load @ bootstrap.js:2228
setManifest @ bootstrap.js:2169
(anonymous) @ bootstrap.js:2141
readyStateChange @ bootstrap.js:854
XMLHttpRequest.send (async)
(anonymous) @ VM330:1
fetch @ bootstrap.js:868
run @ bootstrap.js:2140
(anonymous) @ bootstrap.js:2698
Component.js?_dc=1540324633620:1 Uncaught TypeError: Ext.define is not a function
    at Component.js?_dc=1540324633620:1
(anonymous) @ Component.js?_dc=1540324633620:1
ButtonGroup.js?_dc=1540324633620:1 Uncaught TypeError: Ext.define is not a function
    at ButtonGroup.js?_dc=1540324633620:1
(anonymous) @ ButtonGroup.js?_dc=1540324633620:1
HtmlEditor.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at HtmlEditor.js?_dc=1540324633621:1
(anonymous) @ HtmlEditor.js?_dc=1540324633621:1
RowEditor.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at RowEditor.js?_dc=1540324633621:1
(anonymous) @ RowEditor.js?_dc=1540324633621:1
RowNumberer.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at RowNumberer.js?_dc=1540324633621:1
(anonymous) @ RowNumberer.js?_dc=1540324633621:1
Dock.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Dock.js?_dc=1540324633621:1
(anonymous) @ Dock.js?_dc=1540324633621:1
Menu.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Menu.js?_dc=1540324633621:1
(anonymous) @ Menu.js?_dc=1540324633621:1
Separator.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Separator.js?_dc=1540324633621:1
(anonymous) @ Separator.js?_dc=1540324633621:1
Panel.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Panel.js?_dc=1540324633621:1
(anonymous) @ Panel.js?_dc=1540324633621:1
Table.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Table.js?_dc=1540324633621:1
(anonymous) @ Table.js?_dc=1540324633621:1
Month.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Month.js?_dc=1540324633621:1
(anonymous) @ Month.js?_dc=1540324633621:1
Splitter.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Splitter.js?_dc=1540324633621:1
(anonymous) @ Splitter.js?_dc=1540324633621:1
Paging.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Paging.js?_dc=1540324633621:1
(anonymous) @ Paging.js?_dc=1540324633621:1
Toolbar.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Toolbar.js?_dc=1540324633621:1
(anonymous) @ Toolbar.js?_dc=1540324633621:1
Component.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Component.js?_dc=1540324633621:1
(anonymous) @ Component.js?_dc=1540324633621:1
Checkbox.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Checkbox.js?_dc=1540324633621:1
(anonymous) @ Checkbox.js?_dc=1540324633621:1
Check.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Check.js?_dc=1540324633621:1
(anonymous) @ Check.js?_dc=1540324633621:1
Column.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Column.js?_dc=1540324633621:1
(anonymous) @ Column.js?_dc=1540324633621:1
RowNumberer.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at RowNumberer.js?_dc=1540324633621:1
(anonymous) @ RowNumberer.js?_dc=1540324633621:1
RowExpander.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at RowExpander.js?_dc=1540324633621:1
(anonymous) @ RowExpander.js?_dc=1540324633621:1
TreeItem.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at TreeItem.js?_dc=1540324633621:1
(anonymous) @ TreeItem.js?_dc=1540324633621:1
Item.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Item.js?_dc=1540324633621:1
(anonymous) @ Item.js?_dc=1540324633621:1
Menu.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Menu.js?_dc=1540324633621:1
(anonymous) @ Menu.js?_dc=1540324633621:1
Date.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Date.js?_dc=1540324633621:1
(anonymous) @ Date.js?_dc=1540324633621:1
Month.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Month.js?_dc=1540324633621:1
(anonymous) @ Month.js?_dc=1540324633621:1
Splitter.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Splitter.js?_dc=1540324633621:1
(anonymous) @ Splitter.js?_dc=1540324633621:1
CheckboxModel.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at CheckboxModel.js?_dc=1540324633621:1
(anonymous) @ CheckboxModel.js?_dc=1540324633621:1
SpreadsheetModel.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at SpreadsheetModel.js?_dc=1540324633621:1
(anonymous) @ SpreadsheetModel.js?_dc=1540324633621:1
Paging.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Paging.js?_dc=1540324633621:1
(anonymous) @ Paging.js?_dc=1540324633621:1
MainController.js?_dc=1540324633621:7 Uncaught TypeError: Ext.define is not a function
    at MainController.js?_dc=1540324633621:7
(anonymous) @ MainController.js?_dc=1540324633621:7
MainModel.js?_dc=1540324633621:4 Uncaught TypeError: Ext.define is not a function
    at MainModel.js?_dc=1540324633621:4
(anonymous) @ MainModel.js?_dc=1540324633621:4
Global.js?_dc=1540324633621:2 Uncaught TypeError: Ext.define is not a function
    at Global.js?_dc=1540324633621:2
(anonymous) @ Global.js?_dc=1540324633621:2
ChildSessionForm.js?_dc=1540324633621:21 Uncaught ReferenceError: OffsetApp is not defined
    at ChildSessionForm.js?_dc=1540324633621:21
(anonymous) @ ChildSessionForm.js?_dc=1540324633621:21
LiveDetailController.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at LiveDetailController.js?_dc=1540324633621:1
(anonymous) @ LiveDetailController.js?_dc=1540324633621:1
Base.js?_dc=1540324633621:4 Uncaught TypeError: Ext.define is not a function
    at Base.js?_dc=1540324633621:4
(anonymous) @ Base.js?_dc=1540324633621:4
Contract.js?_dc=1540324633621:25 Uncaught ReferenceError: OffsetApp is not defined
    at Contract.js?_dc=1540324633621:25
(anonymous) @ Contract.js?_dc=1540324633621:25
LiveDetailModel.js?_dc=1540324633621:4 Uncaught TypeError: Ext.define is not a function
    at LiveDetailModel.js?_dc=1540324633621:4
(anonymous) @ LiveDetailModel.js?_dc=1540324633621:4
Trade.js?_dc=1540324633621:45 Uncaught ReferenceError: OffsetApp is not defined
    at Trade.js?_dc=1540324633621:45
(anonymous) @ Trade.js?_dc=1540324633621:45
LiveDetail.js?_dc=1540324633621:95 Uncaught TypeError: Ext.create is not a function
    at LiveDetail.js?_dc=1540324633621:95
(anonymous) @ LiveDetail.js?_dc=1540324633621:95
ReportController.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at ReportController.js?_dc=1540324633621:1
(anonymous) @ ReportController.js?_dc=1540324633621:1
ContractReport.js?_dc=1540324633621:16 Uncaught ReferenceError: OffsetApp is not defined
    at ContractReport.js?_dc=1540324633621:16
(anonymous) @ ContractReport.js?_dc=1540324633621:16
ReportModel.js?_dc=1540324633621:13 Uncaught ReferenceError: OffsetApp is not defined
    at ReportModel.js?_dc=1540324633621:13
(anonymous) @ ReportModel.js?_dc=1540324633621:13
Report.js?_dc=1540324633621:37 Uncaught ReferenceError: OffsetApp is not defined
    at Report.js?_dc=1540324633621:37
(anonymous) @ Report.js?_dc=1540324633621:37
Report.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Report.js?_dc=1540324633621:1
(anonymous) @ Report.js?_dc=1540324633621:1
Main.js?_dc=1540324633621:1 Uncaught TypeError: Ext.define is not a function
    at Main.js?_dc=1540324633621:1
(anonymous) @ Main.js?_dc=1540324633621:1
Root.js?_dc=1540324633621:4 Uncaught TypeError: Ext.define is not a function
    at Root.js?_dc=1540324633621:4
(anonymous) @ Root.js?_dc=1540324633621:4
Application.js?_dc=1540324633621:6 Uncaught TypeError: Ext.define is not a function
    at Application.js?_dc=1540324633621:6
(anonymous) @ Application.js?_dc=1540324633621:6
app.js?_dc=1540324633621:6 Uncaught TypeError: Ext.application is not a function
    at app.js?_dc=1540324633621:6

2 个答案:

答案 0 :(得分:1)

日志的相关部分如下:

ext-all-rtl-debug.js ... 404 (Not Found)

ext-all-rtl-debug.js是一个文件,其中包含Sencha为您打包在一起的基本框架。而且,如果由于error 404而无法加载该应用,那么您的应用当然也将无法加载。

为什么,您将必须检查文件是从ext / build目录中提取的,还是在目录中,以及服务器为什么不提供它。

答案 1 :(得分:0)

伴随着一个很好的@Alexander提示,我发现缺少构建目录,因此一旦将其从另一个sencha应用程序移至“ ext”文件夹下的此目录中,应用程序就可以正常加载。

谢谢@亚历山大!