Sencha - ExtJS - QuickTipManager - 构建失败 c2008

3

设置:Ubuntu 16.04.3 LTS,MATE 1.12.1 我所做的:

  1. Install the Sencha CMD;
  2. Download the Sencha ExtJS (trial version 6.5.2.15);
  3. Created the folder /home/master/sencha/test;
  4. Do cd /home/master/sencha/test; sencha app init --ext@6.5.2 in the terminal;
  5. Put next code into app.js:

    Ext.application({
    name: 'Test',
    
    requires: [
        'Ext.tip.QuickTipManager'
    ],
    
    launch: function () {
       Ext.tip.QuickTipManager.init();
    }    
    });
    
  6. Do sencha app watch in the terminal.

我得到的:

Sencha Cmd v6.5.2.15
[INF] Processing Build Descriptor : default (development environment)
[INF] Starting server on port : 1841
[INF] Mapping http://localhost:1841/~cmd to /home/scilef/bin/Sencha/Cmd/6.5.2.15...
[INF] Mapping http://localhost:1841/ to /home/scilef/sencha/test...
[INF] Server started at port : 1841
[INF] Application available at http://localhost:1841
[INF] Loading compiler context
[INF] Loading app json manifest...
[ERR] C2008: Requirement had no matching files (Ext.tip.QuickTipManager) -- /home/scilef/sencha/test/app.js:7:150
[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for /home/scilef/sencha/test/app.js::ClassRequire::Ext.tip.QuickTipManager
[ERR]   at or
[ERR] g.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ERR] 
[ERR] Total time: 9 seconds

[ERR] /home/scilef/bin/Sencha/Cmd/6.5.2.15/plugin.xml:378: The following error occurred while executing this line:
/home/scilef/bin/Sencha/Cmd/6.5.2.15/ant/build/app/build-impl.xml:253: The following error occurred while executing this line:
/home/scilef/bin/Sencha/Cmd/6.5.2.15/ant/build/app/watch-impl.xml:87: The following error occurred while executing this line:
/home/scilef/bin/Sencha/Cmd/6.5.2.15/ant/build/app/build-impl.xml:387: The following error occurred while executing this line:
/home/scilef/bin/Sencha/Cmd/6.5.2.15/ant/build/app/init-impl.xml:436: com.sencha.exceptions.ExBuild: Failed to find any files for /home/scilef/sencha/test/app.js::ClassRequire::Ext.tip.QuickTipManager
[ERR] A log is available in the file "/home/scilef/sencha/test/sencha-error-20171113.log"

当我尝试require(或use)Ext.form.field.Number、Ext.form.field.Date或Ext.progressBar时,我遇到了相同的错误。

我对ExtJS很陌生,花费了整个昨天寻找解决这个问题的方法,但没有任何成功。我做错了什么?

1个回答

1
自从ExtJS 6.0.0以来,问题在于一个捆绑包中有两个工具包,名为classicmodern。您的命令创建了一个所谓的"通用应用程序", 支持两种工具包。 app.js文件也用于两种工具包; 在子文件夹classicmodern中,有些文件仅用于一个工具包。
现代工具包适用于带有触摸屏的现代设备,经典工具包适用于带有鼠标和键盘的经典设备。 Ext.tip.QuickTipManager仅适用于经典工具包,因为提示显示在鼠标悬停上 - 您无法在触摸设备上悬停。 因此,您必须将所有QuickTipManager代码移动到classic/Application.js或您在classic文件夹中拥有的任何JavaScript文件中。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接