Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DevTools failed to parse SourceMap: chrome-extension

Tags:

A week ago i think, I started getting warning messages in my google chrome console.

messages Clearing cache doesn't change anything, the messages disappear only in incognito mode.

Any ideas how to get rid of these warnings ?

like image 563
Haithem KAROUI Avatar asked Feb 19 '20 14:02

Haithem KAROUI


People also ask

How do I enable source maps in Chrome?

Browser support To enable source maps in Google Chrome, go to Developer Tools, click the little cog icon, and then make sure that “Enable Javascript source maps” is checked. That's it.


2 Answers

I had this problem with the LastPass browser extension. I proved my theory by disabling LastPass and reloading the site in question - the warnings were gone!

I really didn't want to disable the JavaScript and CSS source maps so I have made the following change below:

Pending an update from the LastPass that addresses the issue, I have temporarily fixed this by changing one of the settings in the Extension settings for LastPass.

I had this setting previously set to On all sites, which was injecting the LastPass code on all sites blindly. With this change you need to right click on the Username/Password box to enable last pass, but on the plus side there are no warnings in the console anymore.

I consider this a temporary workaround until either Google or LastPass fix the issue.


EDIT: There is also a checkbox in the settings dialogue for the Console tab itself called Selected context only. Ticking this will remove the warnings and errors from Chrome extensions. Note this setting is not persisted - you'll have to click it each time you open the Dev Tools.

Screenshot of the Console settings panel

like image 151
Chris O'Brien Avatar answered Sep 19 '22 19:09

Chris O'Brien


I've just used Chrome Console Filter -chrome-extension. I see everything except chrome-extension output.

Chrome Console Filter

like image 37
kKobalt Avatar answered Sep 17 '22 19:09

kKobalt