DevTools cannot load the source map: chrome-extension cannot be loaded: the reason for the warning and how to remove it (the most complete and detailed solution on the entire network)

is a warning like this. It's painful to watch every time.
insert image description here
The reason for this warning is caused by your browser add-ons. For example, the warning has clearly told you that it is a problem with chrome-extension, which is the Google plugin. The following string is actually the id of the plugin.

chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/browser-polyfill.js.map

You can see that the corresponding id is the plugin below.
insert image description here
It's easy to know which plugin it is.

Solution 1: (Not recommended)
Disable or delete the plugin. Although it can be effective, it is possible that I usually use this plug-in, and it is troublesome to switch frequently.
Solution 2: (recommended)
Open the console, click the setting button on the right, and the following options will appear. Check the option Only selected contexts . This option only suppresses the browser's plugin warnings. Warnings about programs you write are not removed. It is a very perfect solution (no problems have been found so far).
insert image description here
Solution 3: (Not recommended)
Set the filtering level of the browser's log. Just uncheck the warning. But this will cause the warnings generated by your own program to be invisible. Sometimes it can be used when there are more warnings.
insert image description here
Solution four: (semi-recommended)
Click on the settings of the console. In the following interface, uncheck the option Enable JavaScript source code mapping . You can remove the browser plug-in warning. At the same time, the warnings of your own program can still be seen. Still a perfect solution. But I don't really understand what the function of JavaScript source code mapping is for, which may lead to some unknown risks.
insert image description here

Guess you like

Origin blog.csdn.net/ScottePerk/article/details/128201013