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?

3
  • 4
    Just edit jquery.min.js and remove //@ sourceMappingURL=jquery.min.map. Commented Jul 25, 2013 at 9:05
  • @RobW Not a viable option as you will notice from the error, these are coming from within extensions. Commented Jul 25, 2013 at 9:45
  • possible duplicate of jQuery's 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) Commented Oct 18, 2013 at 21:58

2 Answers 2

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
Sign up to request clarification or add additional context in comments.

Comments

1

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

1 Comment

Although in my case it was coming from an extension, so I couldn't do that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.