Custom Download JS breaks in RequireJS

4 posts, 0 answers
  1. Marlon
    Marlon avatar
    16 posts
    Member since:
    Jul 2013

    Posted 06 Feb 2015 Link to this post

    I created a custom download via http://www.telerik.com/download/custom-download

    I was under the impression that I could use this to replace a reference to kendo.all.min.js.

    We're using requirejs in our app and although the kendo.all file works fine, the custom.js breaks our app. We get reference errors for kendo.data doesn't exist.

    Is there fundamental difference between referencing kendo in the .all js file vs a custom download that I'm missing?
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 10 Feb 2015 Link to this post

    Hello,

    The script produced by the download builder does not contain require definitions.
    It must be loaded via a shim.

    The individual component scripts do contain module definitions and can be loaded with RequireJS.

    I hope this sheds some light on the problem.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Jonathan
    Jonathan avatar
    10 posts
    Member since:
    Jun 2012

    Posted 22 Mar Link to this post

    Custom downloads appear to be broken for RequireJS in v2016.1.226.  The download now appears to be a bunch of concatenated AMD modules but I could not find a module in the download that bundles.  For example kendo.all.min.js includes a module "kendo.all.min" to reference in requirejs.  For version 2015.3.1111 and lower I was able to use a shim but the latest download no longer appears to export a global.  
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 25 Mar Link to this post

    Hello,

    Please accept my apologies for the delayed response.

    This is a result of a breaking change that we introduced in the module naming for the Q1 release.
    It was not intended, but I don't see a way of fixing it without breaking the module names yet again.

    Our recommendation for RequireJS is to use either the individual scripts or bundles built with gulp.
    I'll note this in the documentation as well.

    Apologies for the caused inconvenience.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready