错误显示“无法获取样式表(#)的文本:找不到给定ID的样式表”,这是什么意思? [英] Error shows "Failed to get text for stylesheet (#): No style sheet with given id found", what does this mean?

查看:1648
本文介绍了错误显示“无法获取样式表(#)的文本:找不到给定ID的样式表”,这是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Chrome中加载此应用程序时遇到此错误:

I'm getting this error in Chrome when it loads this application I am working on:


无法获取样式表50的文本:找不到指定ID的样式表

Failed to get text for stylesheet 50: No style sheet with given id found

后续页面加载重复此错误,但使用不同的数字:

Subsequent page loads repeat the error, but with a different number:


无法获取样式表152的文本:找不到具有给定ID的样式表

Failed to get text for stylesheet 152: No style sheet with given id found

这只会在Chrome中发生,并且只会在这个应用程式中使用。没有堆栈跟踪,引用或任何其他信息关于什么id给出,什么是问题的样式表,或是什么造成这一般。如何找到导致此错误的原因并解决问题?

This only happens in Chrome, and only with this application. There is no stack trace, reference, or any other information about what id is given, what the stylesheet in question is, or what is causing this generally. How can I find what is causing this error and fix it?

推荐答案

它看起来像是Chrome的实时编辑CSS / JS中的一个错误。请注意每个请求的数字如何变化。

I had the same problem. It looks like a bug in Chrome's live-edit CSS/JS. Notice how the number changes on each request.

我通过关闭了我在开发工具的源代码标签中编辑的所有文件,然后刷新了该页面。

I fixed it by closing all the files that I had edited in the dev tools 'source' tab and then refreshed the page.

我关闭源代码标签中的所有文件后错误消失。

The error went away after I closed all the files in the 'source' tab.

下面是一张照片在哪里可以找到来源标签:

Here is a picture showing where to find the 'source' tab:

这篇关于错误显示“无法获取样式表(#)的文本:找不到给定ID的样式表”,这是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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