Search code examples
extjsextjs6

ExtJS 6 What package should I require for Ext.ux.colorpick.Field to work?


I want to use Ext.ux.colorpick.Field (modern toolkit), but can not figure out what should I require for it to work.

I've tried ext-ux-colorpick package within app.json, but it leads to an error:

Failed to resolve dependency Ext.form.field.Picker for file Ext.ux.colorpick.Field.

Any suggestions?


Solution

  • Solution was to:

    1 - Install package with npm install @sencha/ext-ux (not globally).

    2 - Change packages path in the workspace.json to ${workspace.dir}/node_modules/@sencha:

      "packages": {
        "dir": "${workspace.dir}/node_modules/@sencha",
        "extract": "${workspace.dir}/node_modules/@sencha/remote"
      }
    

    3 - Add ux to the requires in the app.json.