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

SourceMaps issue

4 Answers 1448 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Miguel
Top achievements
Rank 1
Miguel asked on 22 Jul 2014, 03:11 AM
Not sure if I'm missing something. I see the .map file is there and in the right place, but Chrome isn't loading it. I noticed other files that I use define this explicitly at the end

```
//# sourceMappingURL=app.js.map
```

However, kendo doesn't specify it. If I add it manually, I get one step further, but then Chrome tries to download the file from `myapp.com/src/kendo.core.min.js` instead of getting it from `myapp/kendo/src/js/kendo.core.min.js`. The .map file defines the sourceRoot at the bottom as:

```
`sourceRoot":"../../src/`
```

It works great when I change it to: 

```
`sourceRoot":"../src/js/`
```




4 Answers, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 23 Jul 2014, 08:00 AM
Hi Miguel,

Seems that was a bug in our source map generation.  I fixed the path to point to ../src/js/, which is where the sources are found in standard distributions.  It will be available in the next build.

You still need to add the sourceMappingURL comments manually, though.  We decided to not include it in the source as it causes confusion for many people, in the case the source map isn't found (404 errors in the console, etc).

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Miguel
Top achievements
Rank 1
answered on 01 Aug 2014, 10:30 PM
> You still need to add the sourceMappingURL comments manually, though.  We decided to not include it in the source as it causes confusion for many people, in the case the source map isn't found (404 errors in the console, etc).

That's unfortunate, it would certainly be better if we could simply get the sourcemaps for free. It seems like a lot of unnecessary hassle to have to modify vendor's code in order to get this. 


0
Tayger
Top achievements
Rank 1
Iron
answered on 06 Mar 2016, 06:43 PM

Hello and I'm not sure posting at the right position but it seems to fit. I wanted to include culture settings, like:

   <script src="telerik/js/cultures/kendo.culture.de-DE.min.js"></script>                      
   <script src="http://kendo.cdn.telerik.com/2016.1.112/js/cultures/kendo.culture.de-DE.min.js"></script>

Both causes the following error: 

    Failed to load resource: the server responded with a status of 404 (Not Found)
    http://kendo.cdn.telerik.com/2016.1.112/js/cultures/kendo.culture.de-DE.min.js.map

There is this ".map" in the end but there is not ".map" in the local directory where the culture files are. I have no idea what this is for. I've seen a similar problem in the .net forum (to which I have no write access). They said there that the problem is only in Chrome. In my situation I have the problem in Safari and (as you see) with a very new Kendo UI version.The error is not shown in Firefox. Even if it works in both browser I don't like to have/see this error. How can I fix it?

 

0
Petyo
Telerik team
answered on 09 Mar 2016, 08:19 AM
Hello Farai,

The error should not bother you in particular. The source maps are a developer feature, and it won't affect your customers in any way. 

We will investigate why the culture source maps are not available on the CDN. 

Regards,
Petyo
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
Miguel
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Miguel
Top achievements
Rank 1
Tayger
Top achievements
Rank 1
Iron
Petyo
Telerik team
Share this question
or