Hailwood
Hailwood

Reputation: 92641

Hide jquery.map errors in google chrome developer tools?

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?

Upvotes: 15

Views: 12311

Answers (2)

Sergio Sena
Sergio Sena

Reputation: 31

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

Upvotes: 1

Hailwood
Hailwood

Reputation: 92641

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

Upvotes: 26

Related Questions