2016-04-18 5 views
1

Sencha's online examplesから評価例をコピーしようとしています。私はこのエラーを取得しています理由を理解していない:私はAppRootDirectory/ext/packages/ux/classic/src/ratingで見てみると、Picker.jsファイルがあるExtJSの定格書式

[ERR] BUILD FAILED 
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker 
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands. 
[ERR] java:99) 
[ERR] 
[ERR] Total time: 3 seconds 
[ERR] The following error occurred while executing this line: 
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:247: The following error occurred while executing this line: 
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\watch-impl.xml:61: The following error occurred while executing this line: 
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:380: The following error occurred while executing this line: 
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\init-impl.xml:382: com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker 

アプリを生成するときに、自動的にExtJSのによって作成されました。以下は、ピッカークラスを必要とするクラスの抜粋です。

Ext.define('FreshApp.view.form.RatingForm', { 
    extend: 'Ext.panel.Panel', 
    xtype: 'form-rating', 

    requires: [ 
     'Ext.ux.rating.Picker' 
    ], 

    title: 'Rating Form', 
    viewModel: true, 

    bodyPadding: 10, 
    width: 520, 
    height: 500, 
    minHeight: 400, 
    resizable: true, 
    frame: true, 
    layout: { 
     type: 'vbox', 
     align: 'stretch' 
    }, 
    defaultType: 'textfield', 

助けていただければ幸いです。ありがとう。

+2

あなたのapp.jsにパス 'のようなもの持っていますか:私は明日まで、私に再びそれを試すことができません' – serg

答えて

4

あなたには、uxパッケージが必要なアプリケーションを指定する必要があります。 app.jsonに次のスニペットを追加することで、これを行うことができます。

"requires": [ 
    "ux" 
], 
+1

:{「パス/に/ UX /」「Ext.uxを」}私は '' '' app.json'''にrequireステートメントを追加しませんでした。私はそれが動作する場合は+1両方を必ず与えるでしょう。ありがとう。 –