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

      0  

    Default

    +1
    Lead Trainer / Sencha Specialist
    Community And Learning Systems

    Lead Architect
    DigitalTickets.net

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

      0  

    Default 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 User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice 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

  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

    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 User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      1  

    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

  8. #28
    Sencha User
    Join Date
    Jul 2014
    Posts
    10
    Vote Rating
    1
    ohcibi is on a distinguished road

      0  

    Default

    Could you explain what one has to do exactly in the Architect in order for this error not to happen? We never touched our app.json or index.html file by hand, so it was the architect that messed that up, which makes it unclear how to avoid this.

  9. #29
    Sencha User
    Join Date
    Jul 2014
    Posts
    10
    Vote Rating
    1
    ohcibi is on a distinguished road

      1  

    Default

    I found out that it is because of a css resource. When I add a css resource:
    1. There is no `x-compile` or `x-bootstrap` property like in a js resource
    2. It adds a line to index.html (not in x-compile though)
    3. It adds an item to the resources array in `app.json` which break `sencha app build` when there are js-resources
    So Sencha Architect seems to deliberately break the build process with sencha cmd when mixing js and css resources. Is there any reasonable approach to work with this?

  10. #30
    Sencha User
    Join Date
    Feb 2015
    Posts
    5
    Vote Rating
    0
    albanirneves is on a distinguished road

      0  

    Default Thanks

    Quote Originally Posted by Phil.Strong View Post
    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.

    It solve my problem. Thanks a lot