1. #1
    Sencha Premium Member
    Join Date
    Jan 2014
    Location
    Fort Worth, TX, USA
    Posts
    55
    Vote Rating
    4
    davmillar is on a distinguished road

      0  

    Default [6.0.1.76] Building App Breaks Unbuilt Version

    Every time we build our app, the unbuilt version breaks the package inclusions.

    Following the format suggested by Sencha, our files are in packages/(name)/src, but they are all being looked for in packages/(name). For example, MBX.form.field.VType is in packages/mbx/src/form/field/VType.js, but the app is looking for it at packages/mbx/form/field/VType.js

    What's the deal?

  2. #2
    Sencha - Support Team tristan.lee's Avatar
    Join Date
    Mar 2015
    Posts
    1,190
    Vote Rating
    62
    tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough

      0  

    Default

    Can you provide the contents of your package.json? It's likely the namespace is not set properly.
    Tristan Lee
    Sencha Inc - Support Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2014
    Location
    Fort Worth, TX, USA
    Posts
    55
    Vote Rating
    4
    davmillar is on a distinguished road

      0  

    Default

    Code:
    {
        "name": "mbx",
        "type": "code",
        "creator": "David Millar",
        "summary": "The good parts.",
        "detailedDescription": "The goodest parts of the thing with the stuff.",
        "version": "1.0.0",
        "compatVersion": "1.0.0",
        "format": "1",
        "slicer": {
            "js": [
                {
                    "path": "${package.dir}/sass/example/custom.js",
                    "isWidgetManifest": true
                }
            ]
        },
        "output": "${package.dir}/build",
        "local": true,
        "requires": [
             "ext"
        ]
    }

  4. #4
    Sencha - Support Team tristan.lee's Avatar
    Join Date
    Mar 2015
    Posts
    1,190
    Vote Rating
    62
    tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough

      0  

    Default

    Your package config seems to be missing a few things than what's typically generated. Specifically, I think you are missing the classpath config:

    Code:
    /**
     * This is the comma-separated list of folders where classes reside. These
     * classes must be explicitly required to be included in the build.
     */
    "classpath": "${package.dir}/src,${package.dir}/${toolkit.name}/src",
    Tristan Lee
    Sencha Inc - Support Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  5. #5
    Sencha Premium Member
    Join Date
    Jan 2014
    Location
    Fort Worth, TX, USA
    Posts
    55
    Vote Rating
    4
    davmillar is on a distinguished road

      0  

    Default

    Hey Tristan, based on some issues with theming I ended up building new packages for each of our packages and copying over the code. That seemed to have fixed the issue here as well. It would be awesome if Sencha cmd gave more verbose output when things are missing in package and app JSON files, or have some sort of validator available.

  6. #6
    Sencha - Support Team tristan.lee's Avatar
    Join Date
    Mar 2015
    Posts
    1,190
    Vote Rating
    62
    tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough tristan.lee is a jewel in the rough

      0  

    Default

    The classpath config should have been in there by default when it was generated, or did you remove this by chance?
    Tristan Lee
    Sencha Inc - Support Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. Replies: 1
    Last Post: 14 Sep 2015, 12:58 PM
  2. Replies: 1
    Last Post: 14 Nov 2014, 6:01 AM
  3. Building a debug version with Sencha CMD 3
    By ljkbrost in forum Sencha Cmd
    Replies: 0
    Last Post: 29 Nov 2012, 11:07 PM

Thread Participants: 1