同步加载考虑在 Ext.onReady 上方添加 Ext.require(...)

Synchronously loading consider adding Ext.require(...) above Ext.onReady

我已经阅读了 this, this, this and this 但它没有给出解决方案。

我已经使用 sencha cmd 生成了一个基本应用程序。

我创建了一个模型 "Groupe.js",一个商店 "TreeGroupes.js",它是 "collection" 行的 "Groupe.js"(抱歉,如果我没有使用正确的话,我希望你明白我的意思)。 然后我创建了这个集合的视图:Gestion.view.TreeGroupes。我在我的主控制器中显示它 view/main/Main.js.

这是树:

.
├── Application.js
├── model
│ ├── Groupe.js
│ └── Readme.md
├── Readme.md
├── store
│ ├── Readme.md
│ └── TreeGroupes.js
└── view
├── main
│ ├── MainController.js
│ ├── Main.js
│ └── MainModel.js
└── TreeGroupes.js

所以这是我的逻辑:

它一直对我说那两个警告:

[W] [Ext.Loader] Synchronously loading 'Gestion.view.TreeGroupes'; consider adding Ext.require('Gestion.view.TreeGroupes') above Ext.onReady

[W] [Ext.Loader] Synchronously loading 'Gestion.store.TreeGroupes'; consider adding Ext.require('Gestion.store.TreeGroupes') above Ext.onReady

尝试将 TreeGroupes 添加到 MainController.js

views config

没有找到有效的解决方案,所以我不得不阅读文档并尝试 sencha app watch

root@mycomputer:/web/htdocs/bigpath/myapp# sencha app watch
Sencha Cmd v5.1.0.26
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[INF] Appending content to /web/htdocs/bigpath/myapp/bootstrap.js
[INF] Writing content to /web/htdocs/bigpath/myapp/bootstrap.json
[INF] merging 219 input resources into /web/htdocs/bigpath/myapp/build/development/Gestion/resources
[INF] merged 0 resources into /web/htdocs/bigpath/myapp/build/development/Gestion/resources
[INF] merging 0 input resources into /web/htdocs/bigpath/myapp/build/development/Gestion
[INF] merged 0 resources into /web/htdocs/bigpath/myapp/build/development/Gestion
[INF] writing sass content to /web/htdocs/bigpath/myapp/build/temp/development/Gestion/sass/Gestion-all.scss.tmp
[INF] appending sass content to /web/htdocs/bigpath/myapp/build/temp/development/Gestion/sass/Gestion-all.scss.tmp
[INF] appending sass content to /web/htdocs/bigpath/myapp/build/temp/development/Gestion/sass/Gestion-all.scss.tmp
[INF] executing compass using system installed ruby runtime
unchanged Gestion-all.scss
[INF] Mapping http://localhost:1841/ to /web/htdocs/bigpath/myapp...
[INF] ------------------------------------------------------------------
[INF] Starting web server at : http://localhost:1841
[INF] ------------------------------------------------------------------
[INF] Waiting for changes...

如您所见,它修改了一些东西,现在我不再有问题了。现在我有另一个问题,我确定需要 3 天时间,比如这个...