This is a migrated thread and some comments may be shown as answers.

Incorrect sourceRoot in Kendo UI JavaScript .map files

1 Answer 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 10 Jan 2014, 06:47 PM
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.

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 14 Jan 2014, 08:35 AM
Hi,

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.

Regards,
Mihai
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Tim
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or