SourceMaps issue

5 posts, 0 answers
  1. Miguel
    Miguel avatar
    15 posts
    Member since:
    Jul 2014

    Posted 21 Jul 2014 Link to this post

    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/`
    ```




  2. Mihai
    Admin
    Mihai avatar
    153 posts

    Posted 23 Jul 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Miguel
    Miguel avatar
    15 posts
    Member since:
    Jul 2014

    Posted 01 Aug 2014 in reply to Mihai Link to this post

    > 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. 


  5. Tayger
    Tayger avatar
    61 posts
    Member since:
    Jan 2015

    Posted 06 Mar Link to this post

    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?

     

  6. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 09 Mar Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready