Results 1 to 5 of 5

Thread: Proper way to include Ext.ux

  1. #1
    Sencha User
    Join Date
    Jun 2007
    Posts
    266
    Answers
    7

    Default Answered: Proper way to include Ext.ux

    I wanted to try out this ResponsiveColumn package. I just added this to my app.js file (entire app generating with the sencha -sdk generate app command; everything worked fine until I added Ext.ux.layout.ResponsiveColumn to my classic Main view).

    Code:
    Ext.application({
        name: 'RM',
    
        extend: 'RM.Application',
    
        paths: {
            'Ext.ux': './ext/packages/ux/classic/'
        },
    
        requires: [
            'RM.view.main.Main'
        ]
    });
    
    },
    That did not work, even those the docs say using this field is relative to your HTML index file location.

    https://docs.sencha.com/extjs/6.0/6....ader-cfg-paths

    I got this error when running sencha app watch

    Code:
    [ERR] com.sencha.exceptions.ExBuild: Failed to find any files for ClassRequire::Ext.ux.layout.
    ResponsiveColumn
    I also realized I probably don't want to include this file globally since it's a classic toolkit extension. What's the best way to make this UX folder available for classic toolkits?

  2. Looks like now I need to include it in app.json. This fixed my build error:

    Code:
    "requires": [
            "ux"
        ],

  3. #2
    Sencha User
    Join Date
    Jun 2007
    Posts
    266
    Answers
    7

    Default

    Looks like now I need to include it in app.json. This fixed my build error:

    Code:
    "requires": [
            "ux"
        ],

  4. #3
    Sencha Premium Member
    Join Date
    Aug 2014
    Posts
    54
    Answers
    2

    Default

    Did you have to place your source under the packages folder?

  5. #4
    Sencha User
    Join Date
    Mar 2008
    Posts
    665

    Default

    I tried this and it didn't work. I'm using the latest version of ext and I built my workspace and app via sencha cmd. When I made the change and did a "sencha app build", I still don't have the UX package in my build. Why doesn't the UX package js files get dependency loaded like everything else such as charts?

  6. #5
    Sencha Premium User
    Join Date
    Dec 2009
    Posts
    28

    Default

    I kept getting the same error. First thing to check is that the path to the class is listed in classic.json or modern.json (depending which toolkit build is failing). Then the order of packages in require[] is important too. This was my problem. I have listed a package that was trying to use ux, before I have listed ux.

Similar Threads

  1. proper geolocation
    By primski in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 5 Apr 2012, 5:03 AM
  2. Proper Extend
    By r4nd7263 in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 28 Jul 2011, 7:21 AM
  3. Getting a proper return value
    By troseberry in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 15 Mar 2011, 4:24 AM
  4. Missing: After proper id. please help
    By johnc847 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 16 Nov 2010, 10:56 AM
  5. Proper Use of renderTo
    By alphadogg in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 15 Apr 2010, 8:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •