1. #21
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,083
    Vote Rating
    44
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    +1
    Teahouse Training Company
    Official Certified Sencha Trainer

    Australia / New Zealand / Singapore / Hong Kong & APAC



    SenchaWorld.com - Sencha webinars, videos, etc
    SenchaForge.org - (coming soon)
    TeahouseHQ.com - Sencha ecosystem training portal

    Code Validation : JSLint | JSONLint | JSONPLint

  2. #22
    Sencha Premium Member
    Join Date
    Aug 2013
    Posts
    9
    Vote Rating
    0
    Riddhi.T is on a distinguished road

      0  

    Default app.json javascript files cannot be included.

    app.json javascript files cannot be included.


    Is this fixed now?
    in my app.json i have
    {
    "name": "MyApp",
    "requires": [
    ],
    "js": [
    {"path": "resources\Login.js"}
    ],
    "css": [
    ],
    "id": "38f948d0-b711-4c60-aaff-9eebdd233df9"
    }
    Sencha app build testing generates
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: Mixed-Mode x-compile and microload markup i
    s currently unsupported

  3. #23
    Sencha User
    Join Date
    Apr 2008
    Posts
    10
    Vote Rating
    2
    pholcomb is on a distinguished road

      0  

    Default


    I'm hitting the same issue. I'm using Sencha Cmd 4.0.1 on a Sencha ExtJs 4.2.1 codebase. I have an additional css file I want to load on top of the default theme. I've edited my app.json file to include the following:

    Code:
        "css": [
            {
                "path": "resources/override.css"
            }
        ]
    When I do this, I get the Mixed-Mode... exception as well. I can finish a build successfully when I take this out.

    How are we developers supposed to include external css files in our build processes? Is there another way that I'm missing?

  4. #24
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,928
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    if you need to add things to app.json, you need to move everything from the x-compile section of index.html to app.json as well, then get rid of x-compile from index.html.

    I believe you can use 1 method or the other.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  5. #25
    Touch Premium Member
    Join Date
    Sep 2010
    Location
    UK
    Posts
    54
    Vote Rating
    1
    Joe Kuan is on a distinguished road

      1  

    Default Same error, please help

    Same error, please help


    I got the same error with simple app.json, app.js and index.html
    Sencha Cmd v4.0.1.45

    app.json
    PHP Code:
    {
        
    "name""Sencha_Cmd_Test",
        
    "requires": [
        ]

    app.js
    PHP Code:
    Ext.application({
        
    name'Sencha_Cmd_Test',


        
    extend'Sencha_Cmd_Test.Application',
        
        
    autoCreateViewporttrue
    }); 
    index.html
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Standalone example for ExtJs 4</title>
        <script type="text/javascript" src="ext/bootstrap.js"></script>
        <script type='text/javascript' src="./app.js"></script>
      </head>
      <body id="docbody">
    </body></html>
    I have no experience in using Sencha Cmd and I am a bit clueless with this error message.

  6. #26
    Sencha User
    Join Date
    Feb 2011
    Posts
    2
    Vote Rating
    0
    amsoares is on a distinguished road

      0  

    Default


    I'm facing the same problem

    Code:
    -build-output-markup-page:[INF] Building output markup to /path/to/project/index.html[ERR] [ERR] BUILD FAILED[ERR] java.lang.NullPointerException[ERR] [ERR] Total time: 16 seconds[ERR] The following error occurred while executing this line:/path/to/project/.sencha/app/build-impl.xml:385: The following error occurred while executing this line:/path/to/project/.sencha/app/page-impl.xml:122: The following error occurred while executing this line:/path/to/project/.sencha/app/page-impl.xml:108: java.lang.NullPointerException
    Any help?

  7. #27
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,928
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Again if you want to put things in your app.json then you need to go all in. This means you cannot have any x-compile, x-bootstrap directives in your index.html file.

    You can either use index.html to include files or app.json but not both.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team