RequireJS not working with 2013 Q1 full source

Thread is closed for posting
7 posts, 0 answers
  1. Wenhao
    Wenhao avatar
    17 posts
    Member since:
    Jan 2012

    Posted 21 Mar 2013 Link to this post

    Hello Kendo,

    With your latest version 2013 Q1 released, we are now using RequireJS + Kendo UI in our project. From your tutorial, I define a custom js moduel like the following

    defind(['jquery', 'underscore', 'kendo.grid'], function($, _) {
    });

    However, an error described as 'kendo_module is not defined' was encounted every time I require this module. When I switched the dependency to kendo.grid.min, everything is going to be OK.

    SO, how could I load the kendo ui source code using RequireJS, but without explicitly requiring kendo.data. I realized that if I require this file before kendo.grid, it makes sense too.

    Plz help. Or am I doing something wrong?

    Thanks,
    Wenhao
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 22 Mar 2013 Link to this post

    Hi,

     Currently only the minified files support RequireJS. More info about using Kendo with RequireJS can be found in our documentation.

    All the best,
    Atanas Korchev
    the Telerik team
    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. Louis
    Louis avatar
    1 posts
    Member since:
    Dec 2011

    Posted 22 Mar 2013 Link to this post

    Hello Kendo,

    Just so you know, a dependency is mislabeled in kendo.dataviz.sparkline.min.js.  The required file is kendo.dataviz.chart.min, but the dependency is spelled kendo.chart.min.  RequireJS throws an error.

    The dependency chain is broken further in kendo.dataviz.chart.min, where files are referred to as kendo.dataviz-svg.min and kendo.dataviz-core.min, and in kendo.dataviz.svg.min where the dependency is referred to as kendo.dataviz-core.min (should be kendo.dataviz.svg.min and kendo.dataviz.core.min).
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 25 Mar 2013 Link to this post

    Hi,

    Thank you for reporting this problem. We have corrected the dependency and the fix will be included in all future builds.

    As a token of gratitude for your involvement your Telerik points have been updated.

    Kind regards,
    Tsvetomir Tsonev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. oleg
    oleg avatar
    4 posts
    Member since:
    Nov 2012

    Posted 11 Apr 2013 Link to this post

    Im using kendo.web.js and requirejs.

    I need not minimized version of kendo.web to be able to debug kendo's source code when developing.

    How can I achive this if you said that only minimized file is working with requirejs?
  7. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 11 Apr 2013 Link to this post

    Hello Oleg,

     You cannot achieve it for the time being because only minified Kendo scripts support RequireJS.

    All the best,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. Francesc
    Francesc avatar
    3 posts
    Member since:
    May 2013

    Posted 24 May 2013 Link to this post

    Hello,

    How can i get the kendo instance by using AMD dependencies (RequireJS) ?

    Example that what we would like to achive:

    requirejs(["jquery", "k/kendo.core.min"], function ($, k) {
        var router = new k.Router();    
    });

    Why your "kendo_module" function is not opensource ?

    Thanks,

    Francesc BAETA
Back to Top
Kendo UI is VS 2017 Ready