Results 1 to 3 of 3

Thread: Error from build - Error: [Ext.createByAlias] Unrecognized alias: layout.fit

  1. #1
    Sencha User
    Join Date
    Aug 2016
    Posts
    14
    Answers
    1

    Default Error from build - Error: [Ext.createByAlias] Unrecognized alias: layout.fit

    I'm new to sencha and I think I'm doing something wrong here. I build my application with cmd and everything was ok on watch app. So, I copied the build/testing to a tomcat WebContent folder, but when my app is loading on browser, I get the following error:

    Code:
    app.js?_dc=1472827608782:7622 
    
    [E] Error while running task - Error: [Ext.createByAlias] Unrecognized alias: layout.fit
    Caller: function () {
            var me = this,
                items = me.items.getRange(),
                i = 0,
                len = items.length,
                anim;
            //Ext.log('      executing anim runner task with ', len, ' items');
            me.targetArr = {};
            // Single timestamp for all animations this interval
            me.timestamp = new Date();
            // Loop to start any new animations first before looping to
            // execute running animations (which will also include all animations
            // started in this loop). This is a subtle difference from simply
            // iterating in one loop and starting then running each animation,
            // but separating the loops is necessary to ensure that all new animations
            // actually kick off prior to existing ones regardless of array order.
            // Otherwise in edge cases when there is excess latency in overall
            // performance, allowing existing animations to run before new ones can
            // lead to dropped frames and subtle race conditions when they are
            // interdependent, which is often the case with certain Element fx.
            for (; i < len; i++) {
                anim = items[i];
                if (anim.isReady()) {
                    //Ext.log('      starting anim ', anim.id, ', target: ', anim.target.id);
                    me.startAnim(anim);
                }
            }
            for (i = 0; i < len; i++) {
                anim = items[i];
                if (anim.isRunning()) {
                    //Ext.log('      running anim ', anim.target.id);
                    me.runAnim(anim);
                }
            }
            //else if (!me.useCSS3) {
            // When using CSS3 transitions the animations get paused since they are not
            // needed once the transition is handed over to the browser, so we can
            // ignore this case. However if we are doing JS animations and something is
            // paused here it's possibly unintentional.
            //Ext.log(' (i)  anim ', anim.id, ' is active but not running...');
            //}
            // Apply all the pending changes to their targets
            me.applyPendingAttrs();
            // Avoid retaining target references after we are finished with anims
            me.targetArr = null;
        }log @ app.js?_dc=1472827608782:7622
    app.js?_dc=1472827608782:7632 console.trace()log @ app.js?_dc=1472827608782:7632
    What am I doing wrong?

    Thanks!!

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Can you please provide more details about which files you copied? Any errors in the server logs?

  3. #3
    Sencha User
    Join Date
    Aug 2016
    Posts
    14
    Answers
    1

    Default

    Hi!

    Thanks for your answer. I copied the entire build folder (testing).
    I have also found a solution: declare 'Ext.layout.container.Fit' as required.

    Code:
    requires: [       ...
           'Ext.layout.container.Fit',
           ...
    ],
    Do I have to declare everything that I use (layouts, panels, img, etc.)? There is any other solution?


    Thanks!

Similar Threads

  1. Replies: 1
    Last Post: 18 May 2016, 8:19 AM
  2. Replies: 2
    Last Post: 23 Jun 2014, 7:17 PM
  3. Replies: 1
    Last Post: 2 May 2014, 5:40 AM
  4. Replies: 3
    Last Post: 5 Nov 2012, 6:40 PM
  5. Replies: 1
    Last Post: 8 Dec 2011, 1:16 AM

Posting Permissions

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