1. #41
    Sencha User
    Join Date
    Jun 2008
    Posts
    157
    Vote Rating
    0
    wiznia is on a distinguished road

      0  

    Default


    dorgan, the errors are cryptic and it's not easy to debug them...
    That error probably means that you are missing a require.

  2. #42
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Quote Originally Posted by dorgan View Post
    When running sencha create jsb -a index.html -p app.jsb3 I get the following error:

    undefined:0 TypeError: 'null' is not a constructor
    Which version of the SDK Tools are you using?
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #43
    Sencha User dorgan's Avatar
    Join Date
    Dec 2007
    Location
    Cocoa, FL
    Posts
    286
    Vote Rating
    -1
    dorgan is an unknown quantity at this point

      0  

    Default


    I was able to solve my issue.... I needed to install the dependencies. Including the ia32 libs

  4. #44
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Great, glad to hear
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  5. #45
    Sencha User
    Join Date
    Aug 2011
    Posts
    2
    Vote Rating
    0
    malic is on a distinguished road

      0  

    Default


    Hi, all,

    I am having the same problem in using sencha SDK tools to create jsb filles, saying "undefined:0 TypeError: 'null' is not a constructor".

    Someone clearly solve the problem installing all the dependencies. Can anyone elaborate on the solution for the the error in more detail what the dependencies are? Thanks for help.

  6. #46
    Sencha User
    Join Date
    Aug 2011
    Posts
    2
    Vote Rating
    0
    malic is on a distinguished road

      0  

    Default


    Hi, all, <br><br>I am having the same problem in using sencha SDK tools to create jsb filles, saying "undefined:0 TypeError: 'null' is not a constructor". <br><br>Someone clearly solve the problem installing all the dependencies. Can anyone elaborate on the solution in more detail what the dependencies are? Thanks for help. <br><br>

  7. #47
    Sencha User
    Join Date
    Jun 2011
    Posts
    8
    Vote Rating
    0
    vamsinarendera is on a distinguished road

      0  

    Default not able to create .jsb3 file using Sencha sdk tool

    not able to create .jsb3 file using Sencha sdk tool


    Hi Guys,

    i am facing the similar problem in creating the .jsb3 file in linux
    64 bit . My index file contains the below mentioned lines:

    <script type="text/javascript" src="extjs/ext-debug.js"></script>

    <script type="text/javascript">

    Ext.Loader.setConfig({

    enabled: true,

    paths: {

    'Ext.ux': 'extjs/src/ux',

    'DSHB': 'app'

    }

    });

    Environment = {};

    </script>



    <script type="text/javascript" src="app.js"></script>



    when i am trying to create the .jsb3 file , i am getting the error as



    [ERROR] Ext is not defined, please verify that the library is loaded properly on the application's page

    undefined:216 ReferenceError: Can't find variable: Ext



    could any one please help me in finding the solution for this issue of creating the .jsb3 file .

  8. #48
    Sencha User
    Join Date
    Jun 2011
    Posts
    3
    Vote Rating
    0
    hultgren is on a distinguished road

      0  

    Default undefined:0 TypeError: 'undefined' is not an object

    undefined:0 TypeError: 'undefined' is not an object


    I sometimes get "undefined:0 TypeError: 'undefined' is not an object" in situations where some .js file is not strict (extraneous comma, etc.). When this happens, the build.jsb3 file will exclude the offending class. The fastest way to determine the offending class, is to keep a copy of a working build.jsb3 and run diff in the event of error.

    However, I am now getting this error and have isolated it to a controller that:
    • is syntactically correct
    • runs fine un-compressed (ie: with app.js)
    The main difference of this controller is that I created a function that is called by several event handler functions and returns a value. Each of the event handlers that call this method include:
    Code:
    var me = this.getController('mycontroller');
    var result = me.getResult(parm1, parm2);
    .. manipulate result
    Is this not allowed? If not, what is the right way to have a reusable method in a controller?

  9. #49
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
    WingC is on a distinguished road

      0  

    Post No jsb3 file created

    No jsb3 file created


    Really odd.

    At first there was no problem creating jsb file

    This command:

    sencha create jsb -a http://localhost/helloext/index.html -p app.jsb3However there was a problem running

    sencha build -p app.jsb3 -d .
    One of the suggestion was to install java 7. I tried that, now even the first command is not executed right.

    No error message, the file is just not created. Already tried to uninstall java 7, even tried the 32 bits. Nothing works. Anyone has any idea what the problem might be?

    RunningWin7 64, sencha sdk tools 1.2.3

    Please help...

  10. #50
    Touch Premium Member
    Join Date
    Sep 2011
    Location
    Tamworth, NSW, Australia
    Posts
    667
    Vote Rating
    111
    marc.fearby is just really nice marc.fearby is just really nice marc.fearby is just really nice marc.fearby is just really nice marc.fearby is just really nice

      0  

    Default


    I'm running 64-bit Windows 7 with Sencha SDK Tools 1.2.3 and I'm getting the same thing. This is my first ever attempt at minifying Ext JS, so I guess I'm missing something, but I'm just following section 3 of the Getting Started guide.

    C:\MyApp>sencha create jsb -a default.html -p app.jsb3
    undefined:0 TypeError: 'null' is not a constructor