Javascript Sencha-ExtJS-QuickTipManager-Build失败c2008

Javascript Sencha-ExtJS-QuickTipManager-Build失败c2008,javascript,extjs,extjs6,Javascript,Extjs,Extjs6,设置:Ubuntu 16.04.3 LTS,MATE 1.12.1 我所做的: 安装senchacmd 下载Sencha ExtJS(试用版6.5.2.15) 创建文件夹/home/master/sencha/test 做 cd/home/master/sencha/test;sencha应用程序初始化--ext@6.5.2 在航站楼 将下一个代码放入app.js: Ext.application({ name: 'Test', requires: [ 'Ext.tip.QuickTi

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

  • 安装senchacmd
  • 下载Sencha ExtJS(试用版6.5.2.15)
  • 创建文件夹/home/master/sencha/test
  • cd/home/master/sencha/test;sencha应用程序初始化--ext@6.5.2
    在航站楼
  • 将下一个代码放入app.js:

    Ext.application({
    name: 'Test',
    
    requires: [
        'Ext.tip.QuickTipManager'
    ],
    
    launch: function () {
       Ext.tip.QuickTipManager.init();
    }    
    });
    
  • 在终端中执行sencha app watch

  • 我得到的是:

    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"
    
    当我试图要求(或使用)Ext.form.field.Number、Ext.form.field.Date或Ext.progressBar时,也出现了相同的错误


    我是ExtJS新手,我花了最后一天的时间来找到解决这个问题的方法,但没有任何成功。我做错了什么?

    问题是,自从ExtJS 6.0.0以来,在一个包中有两个工具包,分别名为
    classic
    modern
    。您的命令创建了一个支持这两个工具包的所谓的。
    app.js
    文件也用于这两个工具包;在子文件夹
    classic
    modern
    中,存在仅用于一个工具包的文件

    Modern toolkit适用于带触摸的现代设备,classic toolkit适用于带鼠标和键盘的经典设备

    仅适用于经典工具包,因为工具提示显示在鼠标上方-您不能在触摸设备上悬停。因此,您必须将所有QuickTipManager代码移动到
    classic/Application.js
    classic
    文件夹中的任何javascript文件中