Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Ext 4.2.1 Commercial - Ext.cmd missing in Ext.js file

  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    1

    Default Ext 4.2.1 Commercial - Ext.cmd missing in Ext.js file

    Hi all,

    I recently upgraded my project to use ExtJS 4.2.1 commercial package. However, my page is broken after that. The error is:

    • [COLOR=red !important]Uncaught TypeError: Cannot call method 'derive' of undefined ext.js:18[/COLOR]
      • [COLOR=red !important](anonymous function)[/COLOR]ext.js:18


    My page includes Ext.js and my compiled app-all.js files. Looking inside the ext.js file, I see it calls function Ext.cmd.derive to define classes, but, the object Ext.cmd isn't defined before usages.

    My project worked fine with prior ExtJS packages.

    My questions: Am I doing it wrong in ExtJS 4.2.1? Should I use a different file than Ext.js? Should I include additional files? Or is this a bug in ExtJS 4.2.1?

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    Did you run "sencha app upgrade /path/to/sdk" after installing Cmd 3.1.2 and ExtJS 4.2.1?

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    35

    Default

    This is a pretty significant change for a revision!

    I'm having exactly the same issue as the op. My answer to your question is no - we don't use Sencha Cmd at all.

  4. #4
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    cmd.derive() is injected by 3.1.2 into the compiled libs, but shouldn't be running anywhere else (ext-dev.js, non-cmd built compressed libs, etc.).

    Can you expand on what steps you've taken leading up to seeing that error?

  5. #5
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    35

    Default

    • Log in to support.sencha.com.
    • Download Ext 4.2.1 from May 22
    • Extract ext.js from zip
    • Examine contents

    Notice that all uses of Ext.define appear to be replaced with Ext.cmd.derive, which itself is not defined.

    The point is that you can't just drop ext.js into a web page and have it work in this version. Make a blank html page that references ext.js and you'll get a type error due to the missing "cmd" object.

  6. #6
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    The ext.js file has been reported as a bug and is being worked on now. In the interim you can use ext-all.js in its place.

  7. #7
    Sencha User
    Join Date
    Feb 2010
    Posts
    1

    Default

    not only in ext.js file, same issue in ext-core.js

  8. #8
    Sencha User
    Join Date
    May 2009
    Posts
    4

    Default

    Meanwhile you can minify ext-debug.js using yui-compressor (which is also part of Sencha cmd and SDK Tools):
    Code:
    java -jar ~/SenchaTools/bin/yuicompressor.jar ext-debug.js -o ext.js

  9. #9
    Sencha User
    Join Date
    May 2010
    Location
    Sapiranga, Rio Grande do Sul, Brazil
    Posts
    77

    Default

    Is this solved? the minified option didn't worked...

    EDIT: Sorry, the minified option works.

  10. #10
    Sencha User
    Join Date
    Aug 2013
    Posts
    1

    Default The issue is still there

    I downloaded sencha 5 days back and , i got the issue.
    Slemmon, could you give a link where we can check the progress of the issue (jira link.. i am new to sencha, so i dont know if jira exists or not)

Page 1 of 2 12 LastLast

Posting Permissions

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