DevTools无法解析SourceMap:chrome-extension [英] DevTools failed to parse SourceMap: chrome-extension

查看:2017
本文介绍了DevTools无法解析SourceMap:chrome-extension的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一周前,我开始在Google chrome控制台中收到警告消息.

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

清除缓存不会更改任何内容,消息只会在隐身模式下消失.

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

任何想法如何摆脱这些警告?

Any ideas how to get rid of these warnings ?

推荐答案

我的 LastPass 浏览器扩展程序存在此问题.我通过禁用 LastPass 并重新加载有问题的网站来证明我的理论,警告已经消失了!

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!

我真的不想禁用JavaScript和CSS源映射,因此我在下面进行了以下更改:

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

正在等待LastPass的更新来解决此问题,我已通过更改LastPass的扩展程序设置中的一项来临时解决此问题.

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.

我以前将此设置设置为在所有站点上,这是在所有站点上盲目注入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.

在Google或LastPass解决此问题之前,我认为这是临时解决方法.

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

控制台"选项卡本身的设置对话框中还有一个复选框,称为"仅选定上下文" .勾选此项将删除Chrome扩展程序中的警告和错误.请注意,此设置不会保留-每次打开开发工具时都必须单击它.

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.

这篇关于DevTools无法解析SourceMap:chrome-extension的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆