1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    JDMOE is on a distinguished road

      0  

    Default Deployment Error Sencha SDK Tools: 'TypeError: 'undefined' is not an object'

    Deployment Error Sencha SDK Tools: 'TypeError: 'undefined' is not an object'


    When I try to generate the .jsb3 file for the example application feed-viewer which is shipped with the Ext JS4 package using
    Code:
    sencha create jsb -a feed-viewer.html -p app.jsb3
    I get the following error message:
    HTML Code:
    undefined:0 TypeError: 'undefined' is not an object
    (The example from the API Docs http://docs.sencha.com/ext-js/4-0/#/...etting_started works fine)
    I'm using the current Sencha SDK Tools (beta) on a Mac.

    Thanks for any help!

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,260
    Vote Rating
    79
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Any news about this?

    I just get the same problem!

    Funny thing, I've already generated jsb3 file for my application but now fails.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  3. #3
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,260
    Vote Rating
    79
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Never mind, me bad:
    I mistakely copied production index to development index.
    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    JDMOE is on a distinguished road

      0  

    Default Problem also visible in JavaScript Console in Browser

    Problem also visible in JavaScript Console in Browser


    I actually realized that the error message already appears in the JavaScript console of the Browser (using the Feed Viewer example above). In the Safari console I get
    Code:
    TypeError: Result of expression 'o' [undefined] is not an object.
    in the class ext-all-debug.js line 17233 (GPL version http://www.sencha.com/products/extjs...-js-4.0.2a/213).

    In firefox and Chrome I get similar messages
    Code:
    Error: o is undefined
    in firefox and
    Code:
    Uncaught TypeError: Cannot read property 'id' of undefined
    in Chrome respectively.

    Any ideas what might cause the problem?

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    JDMOE is on a distinguished road

      0  

    Default Error Message can be reproduced on working example when 'Ext.require ..' is removed

    Error Message can be reproduced on working example when 'Ext.require ..' is removed


    A similar ErrorMessage can be constructed using the deployment example of the GettingStarted API Docs (http://docs.sencha.com/ext-js/4-0/#/...etting_started).
    When removing the line
    Code:
     Ext.require('Ext.container.Viewport');
    from the file app.js, the command
    Code:
     sencha create jsb -a index.html -p app.jsb3
    results in the ErrorMessage
    HTML Code:
     undefined:0 TypeError: 'null' is not a constructor
    In this case, no ErrorMessage appears in the JavaScript console of the browser.

    Is there any way to produce a more specific ErrorMessage, or recover the missing 'Ext.require..' in a different way?

    Thanks for any help
    Jan

  6. #6
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    JDMOE is on a distinguished road

      0  

    Default


    Hi gabrielle,

    thanks for the answer. On a different machine (linux and no Mac) I also did not get the error.

    Any suggestions what might cause it?

    On the other hand, as you can read above. One can reproduce an error similar to the original one using the example from the GettingStarted guide from the API Docs.

  7. #7
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    9
    stevil will become famous soon enough

      0  

    Default


    Quote Originally Posted by JDMOE View Post
    When I try to generate the .jsb3 file for the example application feed-viewer which is shipped with the Ext JS4 package using
    Code:
    sencha create jsb -a feed-viewer.html -p app.jsb3
    I get the following error message:
    HTML Code:
    undefined:0 TypeError: 'undefined' is not an object
    (The example from the API Docs http://docs.sencha.com/ext-js/4-0/#/...etting_started works fine)
    I'm using the current Sencha SDK Tools (beta) on a Mac.

    Thanks for any help!
    +1 - same error running

    Code:
       ext-theme -d .\ext-4.0.5 -c resources\css\mytheme.css -o mytheme -v
    stevil

  8. #8
    Sencha User
    Join Date
    Jul 2011
    Posts
    5
    Vote Rating
    0
    JDMOE is on a distinguished road

      0  

    Default


    Hi gabrielle,

    thanks for the answer. It did however not resolve the problem for me. The error remains the same.

  9. #9
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    I am getting the same error
    Code:
    TypeError: 'undefined' is not an object
    Line: 0
    Source: undefined
    when running the SDK against Ext 4.0.5.

    My command for Ext 4.0.4 runs cleanly:
    Code:
    /cygdrive/c/PROGRAMMER/SenchaSDKTools-1.2.2/command/sencha.bat slice theme -v -d htdocs\\includes\\library\\extjs\\ext-4.0.4 -c htdocs\\includes\\library\\extjs\\my\\resources\\css\\theme.css -o htdocs\\includes\\library\\extjs\\ext-4.0.4/resources\\themes\\images\\my\\
    But the Ext 4.0.5 command fails:
    Code:
    /cygdrive/c/PROGRAMMER/SenchaSDKTools-1.2.2/command/sencha.bat slice theme -v -d htdocs\\includes\\library\\extjs\\ext-4.0.5 -c htdocs\\includes\\library\\extjs\\my\\resources\\css\\theme.css -o htdocs\\includes\\library\\extjs\\ext-4.0.5/resources\\themes\\images\\my\\
    The double backslashes are necessary.

  10. #10
    Sencha User
    Join Date
    Aug 2008
    Posts
    101
    Vote Rating
    6
    FoxMulder900 is on a distinguished road

      0  

    Default


    Ok, I am getting this exact same error, I have tried both the URL and just index.html. Does this mean I am missing an Ext.require somewhere? If so how do I tell where to look?

    The only warning I get in my console when my page loads is "Store defined with no model. You may have mistyped the model name." my understanding was this warning is from having a TreeStore and will supposedly be fixed in 4.1 but could it have anything to do with my build error?