Ext.ux应用程序构建与应用程序监视(ExtJS 6.2.0 GPL) [英] Ext.ux app build vs app watch (ExtJS 6.2.0 GPL)

查看:190
本文介绍了Ext.ux应用程序构建与应用程序监视(ExtJS 6.2.0 GPL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,无论是书籍还是谷歌,我都无法解决-但我认为对于比我更熟练的人来说,回答起来很简单:-)

I have a problem I cannot solve regardless of books and google - but I assume is stupidly simple to answer for someone more skilled than me :-)

使用CMD 6.5.2和ExtJS 6.2.0 GPL

Using CMD 6.5.2 and ExtJS 6.2.0 GPL

我正在尝试使用示例桌面作为起点来构建桌面应用程序.

I am trying to build a desktop application, using the sample desktop as a starting point.

只要使用"sencha app watch classic",我就可以使我的桌面正常运行,修改,显示数据.

I can get my desktop up and running fine, modify it, show my data - as long as I use "sencha app watch classic".

我已经在app.json的require列表中添加了"ux",并且还在Application.js中使用了extend:'Ext.ux.desktop.App'

I have put "ux" in the requires list in app.json, and also using extend: 'Ext.ux.desktop.App' in Application.js

因此,运行"sencha应用程序经典手表"会显示我的桌面,但是运行"sencha应用程序经典手表生产",然后将build/production/Desktop/中的文件移动到我的Web服务器根本无法工作.

So running "sencha app watch classic" shows me my desktop, but running "sencha app build classic production", and then moving the files in build/production/Desktop/ to my web server does not work at all.

我在Chrome控制台中收到如下错误:GET http://localhost/desktop/.js 404(未找到)(索引):72

I get an error like this in Chrome console: GET http://localhost/desktop/.js 404 (Not Found) (index) : 72

因此该脚本正尝试加载一个具有空名称的js文件,这对我来说很难探索,更冗长的错误本来很好:-)

So the script is trying to load a js-file with an empty name, this is quite hard to explore for me, a more verbose error would have been nice :-)

任何人都知道发生了什么事!!

Anyone have a clue as to what is going on?!

//乔纳斯(Jonas)

//Jonas

推荐答案

在浏览器中(通过本地Web服务器)打开应用程序的未编译版本时,您可能会看到一个或多个浏览器控制台中的以下警告信息:

When you open your uncompiled version of the application in a browser (through a local web server), you may see one or more of the following warnings in the browser console:

[W] [Ext.Loader]同步加载"MyApp.view.Test";考虑在Ext.onReady上方添加Ext.require('MyApp.view.Test')

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

这意味着您在某处引用了MyApp.view.Test,但是应用程序不知道它是必需的,因此不会事先加载它-也不会将其编译为内置版本.

This means that you reference MyApp.view.Test somewhere, but the app does not know it is required, and thus does not load it beforehand - nor compiles it into the built version.

这篇关于Ext.ux应用程序构建与应用程序监视(ExtJS 6.2.0 GPL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆