2017-11-13 6 views
3

설정 : 우분투 16.04.3 LTS, 내가 무슨 짓을했는지 MATE 1.12.1 :엽차 - ExtJS로 - QuickTipManager - 빌드 실패 C2008

  1. 센차 CMD를 설치;
  2. Sencha ExtJS (시험판 버전 6.5.2.15)를 다운로드하십시오.
  3. /home/master/sencha/test 폴더를 만들었습니다.
  4. 마십시오 cd /home/master/sencha/test; sencha app init [email protected] 터미널에서; app.js에
  5. 넣어 다음 코드 :

    Ext.application({ 
    name: 'Test', 
    
    requires: [ 
        'Ext.tip.QuickTipManager' 
    ], 
    
    launch: function() { 
        Ext.tip.QuickTipManager.init(); 
    }  
    }); 
    
  6. 터미널에서 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에 익숙하지 않고 마지막 날에이 문제를 해결할 방법을 찾았지만 성공하지 못했습니다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

답변

1

ExtJS 6.0.0부터 classicmodern이라는 두 개의 툴킷이 번들에 포함되어 있습니다. 귀하의 명령은 두 도구 키트를 모두 지원하는 이른바 "universal app"을 만듭니다. app.js 파일은 두 툴킷에도 사용됩니다. 서브 폴더 classicmodern에는 하나의 툴킷에만 사용되는 파일이 있습니다.

현대식 툴킷은 마우스와 키보드가있는 클래식 장치 용 터치 식 클래식 툴킷을 갖춘 최신 장치 용 툴킷입니다.

Ext.tip.QuickTipManager은 툴팁이 마우스 오버시 표시되므로 클래식 툴킷에서만 사용할 수 있습니다. 터치 장치에 마우스를 올려 놓을 수는 없습니다. 따라서 모든 QuickTipManager 코드를 classic/Application.js 또는 classic 폴더에있는 javascript 파일로 이동해야합니다.