Ошибка запуска приложения Sencha во время выполнения - PullRequest
0 голосов
/ 23 октября 2018

Каждый раз, когда я запускаю приложение 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 голосов
/ 24 октября 2018

Наряду с отличной подсказкой @Alexander, я обнаружил, что каталог сборки отсутствует, поэтому, как только я переместил его из другого приложения sencha в это в папке "ext", приложение загрузилось нормально.

Спасибо, @Alexander!

0 голосов
/ 24 октября 2018

Соответствующие части вашего журнала:

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

ext-all-rtl-debug.js - это файл, который содержит базовую структуру, упакованную Senchaдля тебя.И если это не может быть загружено из-за ошибка 404 , то, конечно, ваше приложение не будет загружаться.

Что касается причины, вам придется проверить, не является ли файл ошибочным из ext /или если он находится в каталоге, то почему сервер его не доставляет.

...