Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress Chrome DevTools warning: 'DevTools failed to load SourceMap: Could not load content for...'

Context

For many of my js files I have no source map. When using the devtools console it pollutes the warnings about that. I would not like to turn of all warnings, but those are not really useful for me

Question

How to suppress Chrome DevTools warning: 'DevTools failed to load SourceMap: Could not load content for...'?

like image 364
g.pickardou Avatar asked May 12 '20 08:05

g.pickardou


3 Answers

Hide them via console filter like -/(load|parse)\sSourceMap/

enter image description here

(using a /regexp/ with \s seems to be the only working method of specifying strings with spaces)

like image 171
wOxxOm Avatar answered Oct 16 '22 21:10

wOxxOm


In DevTools (F12) -> Settings (F1) :

Disable both "enable JS source maps" and "enable CSS source maps" in "Preferences -> Sources"

like image 20
Mike Avatar answered Oct 16 '22 21:10

Mike


If you open DevTools (F12) then look for the cog "Preferences" top/right you can disable "Enable JavaScript source maps" under the Sources section by un-checking that option.

Find the cog (preferences) Find the option

like image 8
RustyNox Avatar answered Oct 16 '22 21:10

RustyNox



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!