Css – Error shows “Failed to get text for stylesheet (#): No style sheet with given id found”, what does this mean

cssgoogle-chrome

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

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:

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

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?

Best Answer

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.

I tried to reproduce it after closing the files, but I can't seem to recreate it, yet.


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

enter image description here