Incorrect sourceRoot in Kendo UI JavaScript .map files

2 posts, 0 answers
  1. Tim
    Tim avatar
    1 posts
    Member since:
    Dec 2013

    Posted 10 Jan 2014 Link to this post

    Just thought I would alert the Kendo UI developers to this potential bug:

    The JavaScript .map files that came with my trial copy of Kendo UI 2013.3.1119 all contain "sourceRoot":"../src/js/" at the end, which points browsers to the non-existent folder "/src/js" whereas my Kendo UI JS files are located in the "/Scripts/kendo" folder instead. 

    This causes DevTools to attempt to load the JS files from the wrong location and display a 404 error in the console.

    To fix this problem I had to do a global search-and-replace to remove the optional "sourceRoot" property from all 101 .map files in my project.

  2. Mihai
    Mihai avatar
    153 posts

    Posted 14 Jan 2014 Link to this post


    Unfortunately, it's impossible to tell in advance where the source files will be in every app.  The sourceRoot was designed to work with commercial Kendo builds, which ship minified files in "js/" and original sources in "src/js/".

    For the future, we plan to do what jQuery did and remove the sourceMappingURL comment.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top