Results 1 to 5 of 5

Thread: Packages - Loading external libraries with the package doesn't work

  1. #1

    Post Packages - Loading external libraries with the package doesn't work

    Hi

    I'm developing an application that uses a lot of packages
    Some packages are using external libraire like leaflet/mxgraph...

    I'm using the package loader and the recommendations provided by Don Griffin
    https://github.com/sencha-extjs-exam...ltiPackageDemo
    "uses" instead of "requires" in app.json + Ext.Package.load

    I'm running into a problem with external libraries that are not loaded with the packages
    I declared these libs in my package.json file

    "js": [{
    "path" : "${package.dir}/lib/mxGlobals.js"
    },{
    "path": "${package.dir}/lib/mxgraph/javascript/mxClient.js"
    }...
    ]
    "css": [{
    "path": "${package.dir}/lib/mxeditor/styles/grapheditor.css"
    },{
    "path": "${package.dir}/lib/mxgraph/javascript/src/css/common.css"
    }...
    ]

    If I want to have my libs loaded I've to declare them in the app.json file which is not the goal.

    Any comment/feedback is welcome

    Thank you for your Help

    Frédéric DAL BO
    Agilium - France



  2. #2

    Default

    FYI a bug has been created (#SDKTOOLS-1979)

  3. #3

    Default

    Hi frdal, did you find any solution for that?
    I have just spent full day building a new package just to fins out that it refuses to load external resources..... the js/css configs are still ignored!

    Mike

  4. #4
    Sencha Premium User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    811

    Default

    Same happens with their packages, if you use d3 not as "requires" but as "uses" and loaded with Ext.Package then the d3 library itself is not loaded, only sencha's d3.
    Github https://github.com/vadimpopa
    Blogging @ : http://vadimpopa.com
    Twitter: @vadimvpopa

  5. #5
    Sencha Premium User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    811

    Default

    Bump, any news on this one ?
    Github https://github.com/vadimpopa
    Blogging @ : http://vadimpopa.com
    Twitter: @vadimvpopa

Similar Threads

  1. Replies: 1
    Last Post: 15 Dec 2014, 2:23 AM
  2. Replies: 0
    Last Post: 30 Oct 2014, 10:12 AM
  3. External Libraries and CMD
    By jeffbattershall in forum Sencha Cmd
    Replies: 5
    Last Post: 19 Dec 2013, 7:10 AM
  4. Including External JS Libraries
    By studio4development in forum Sencha Touch 2.x: Q&A
    Replies: 10
    Last Post: 25 Jun 2013, 2:14 PM
  5. Include External Libraries with Microloader
    By jachenry in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 18 Jul 2012, 11:43 PM

Posting Permissions

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