ExtJS:空文件名(仅 .js?_dc=20181..)- 404 错误

ExtJS: Empty File Name (only .js?_dc=20181..) - 404 Error

很长一段时间以来,我一直面临这个问题,不幸的是 sencha forums 对此没有任何帮助。所以我不得不在这里提出来。

我正在尝试开发一个简单的天气面板。在本地主机环境中显示应用程序时一切正常,但是当它转到实时版本时会在下面出现此错误并且整个应用程序无法正常工作;

GET http://www.myapp/.js?_dc=20180112155627 404 (Not Found)
fetch @ (index):89
fetch @ (index):99
loadSync @ (index):103
load @ (index):103
loadEntries @ (index):95
processRequest @ (index):85
loadSync @ (index):85
load @ (index):85

作为环境,我们在发布版本期间使用 Jenkins 和 classic 工具包,这是 Jenkins 的命令;

Started by GitLab push by nengin
+ sencha app build classic

我已经为天气面板使用了地理定位功能,但由于这个问题,我认为它会不断引发错误,所以我将其删除,但应用程序仍然会出现此错误。在 sencha 论坛上,他们向我推荐

it happens because of a missing file/ required file. Use sencha app build testing to find out which file is missing. As well comment modern toolkit statements on app.json to avoid errors related with unnecessary classes.

嗯..我做了所有但如果我没有禁用仪表板上的 weather-panel 项目 class 并将其推送到存储库,Jenkins 将提交并构建实时版本到互联网。并保持在上面给出这个错误!

下面是weather-panel的一些代码片段,究竟是什么原因导致了这个错误?我真的需要一些想法。

这是天气面板的完整代码块@http://www.text-share.com/view/b53bd4fd

谢谢指教。


更新

通过@Alexander 的评论:

所以我在控制台上得到了这个 WARN[W] [Ext.Loader] Synchronously loading 'Ext.data.proxy.JsonP'; consider adding Ext.require('Ext.data.proxy.JsonP') above Ext.onReady bootstrap.js:867

我在 weatherdata class 上使用了 JsonP,它不包括 JsonP 内的 requires。现在我添加了 JsonP,现在 WARN 不见了!那么它会 运行 在服务器上编译应用程序时没有空文件错误吗?

@Alexander的评论已经解决了;

Please open the browser console, then work with the uncompiled app like it were the compiled app, and check for any occurrences of "Synchronously loading ..., consider adding ..." warnings. Make sure to fix all these warnings, because they cause the issue.