Results 1 to 2 of 2

Thread: On upgrade to 2.3 production build tries to load framework files from build directory

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    16
    Answers
    1

    Default On upgrade to 2.3 production build tries to load framework files from build directory

    Hi, I'm trying to upgrade to sencha touch 2.3.1 from 2.1 and I finally managed to get the build process running. If I run the project from the project root it works with no warnings, but when running the production build it fails because it tries to load few framework files from the production directory, but off course they are not there. I put the whole src directory there to see which files it was looking for:

    loaded files.jpg

    I tried using sencha-touch-all.js but the same results... This is my app.json

    Code:
    {
        "name": "hos",
        "indexHtmlPath": "index.html",
        "url": "index.html",
        "js": [
    		{
    			"path": "lib/lib.js",
    			"update": "full"
    		},
            {
                "path": "touch/sencha-touch-all.js"
            },        
            {
                "path": "app.js",
                "bundle": true,  /* Indicates that all class dependencies are concatenated into this file when build */
                "update": "full"
            }
        ],
        "css": [
            {
                "path": "resources/css/app.css",
                "update": "full"
            }
        ],
        "appCache": {
            /**
             * List of items in the CACHE MANIFEST section
             */
            "cache": [
                "index.html"
            ],
            /**
             * List of items in the NETWORK section
             */
            "network": [
                "*"
            ],
            /**
             * List of items in the FALLBACK section
             */
            "fallback": []
        },
        "resources": [
            "resources/imges",
            "resources/icons",
            "resources/startup"
        ],
        "ignore": [
            "\.svn$"
        ],
        "archivePath": "archive",
        "requires": [
        ],
        "id": "ac0212d0-c971-11e1-b52b-e74dcc7af366"
    }
    Any ideas on why would that happen?


    Thanks

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    Looks like you are missing the reference to bootstrap from your js. Try
    Code:
       "js": [{
            "path": "lib/lib.js",
            "update": "full"
        }, {
            "path": "touch/sencha-touch.js",
            "x-bootstrap": true
        }, {
            "path": "bootstrap.js",
            "x-bootstrap": true
        }, {
            "path": "app.js",
            "bundle": true,
            /* Indicates that all class dependencies are concatenated into this file when build */
            "update": "delta"
        }],
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Tags for this Thread

Posting Permissions

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