15

With the introduction of .map files I am getting my console flooded with errors like:

Denying load of chrome-extension://flpedblkbobmjlipnnmalidalmhkangn/jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

Is there any way I can suppress error messages about .map files?

Hailwood
  • 89,623
  • 107
  • 270
  • 423
  • 4
    Just edit `jquery.min.js` and remove `//@ sourceMappingURL=jquery.min.map`. – Rob W Jul 25 '13 at 09:05
  • @RobW Not a viable option as you will notice from the error, these are coming from within extensions. – Hailwood Jul 25 '13 at 09:45
  • possible duplicate of [jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)](http://stackoverflow.com/questions/18365315/jquerys-jquery-1-10-2-min-map-is-triggering-a-404-not-found) (I realize that this question by Paul Irish was posted later, but it has become a canonical reference for this topic) – Rob W Oct 18 '13 at 21:58

2 Answers2

26

To disable the source maps for one file:

You can filter out the messages for the .map files by right clicking them in the console (Not the link) Selecting Filter > Hide messages from ... enter image description here

You can also disabled either CSS or JavaScript source maps globally from the Developer Tools settings.

To disable the source maps globally:

  • Click the cog icon in the bottom right of the Developer Tools
  • Locate the 2nd and 3rd options on the right under Sources
  • Untick Enable JS source maps
  • Untick Enable CSS source maps enter image description here
Community
  • 1
  • 1
Hailwood
  • 89,623
  • 107
  • 270
  • 423
1

Download the map file and place it in the same .js file directory. http://jquery.com/download/