ESRI : Failed to parse source map

后端 未结 10 1439
[愿得一人]
[愿得一人] 2020-11-28 21:41

I am getting this error in the Google chrome developer console.

Failed to parse SourceMap: http://localhost:15132/Scripts/_External/igniteui/css/the

相关标签:
10条回答
  • 2020-11-28 22:11

    The error in the Google DevTools are caused Google extensions.

    1. I clicked on my Google icon in the browser
    2. created a guest profile at the bottom of the popup window.
    3. I then pasted my localhost address and voila!!

    No more errors in the console.

    0 讨论(0)
  • 2020-11-28 22:12

    Further to just simply turning off Source Maps in Chrome - I've done a little digging and found that using Web Essentials to create the source maps seems to be the issue.

    For whatever reason, if I use an external compiler (Koala) I can successfully create working source maps in Chrome (no errors). Whereas if I use Web Essentials, the source maps fail to parse.

    Hope this helps someone.

    0 讨论(0)
  • 2020-11-28 22:12

    This may sometimes be caused by Chrome extensions you've installed. For example, AdBlock.

    Unfortunately the best solution I could find was to disable the offending extension.

    0 讨论(0)
  • 2020-11-28 22:13

    While the chosen answer is a good answer to hide the error, it doesn't make the error go away, it's just that you can't see it in the inspector. The other way would be to download the missing map file and put it in the assets/lib directory. So, for example, I was missing angular-route.min.js.map file and I went here https://code.angularjs.org/1.5.3/ (to the correct version of angular) and downloaded the missing file. The error didn't disappear right away, possibly because of caching, but once I went to the actual file in the browser it worked. http://sitename.localhost/assets/lib/angular-route.min.js.map. Now the inspector no longer displays the error even with source maps enabled.

    0 讨论(0)
  • 2020-11-28 22:19

    I had the same problem because .htaccess has incorrect settings:

    RewriteEngine on
    RewriteRule !.(js|gif|jpg|png|css)$ index.php


    I solved this by modifying the file:

    RewriteEngine on
    RewriteRule !.(js|gif|jpg|png|css|eot|svg|ttf|woff|woff2|map)$ index.php

    0 讨论(0)
  • 2020-11-28 22:19

    I noticed that problem because of AdBlock Extension, I turned off AdBlock extension the issue got resolve.

    0 讨论(0)
提交回复
热议问题