Site logo

Archived topic

Error cssRules

5 replies · Started by Timur on July 22, 2021

Viewing posts 1–6 of 6

Good day. This error occurs immediately after starting work:
DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot

Error on line 177 content.js
// CSS rules
let css = []

try {
for (const sheet of Array.from(document.styleSheets)) {
for (const rules of Array.from(sheet.cssRules)) {
css.push(rules.cssText)

if (css.length >= 3000) {
break
}
}
}

Hi there,

where are you seeing the error?

And have you tried disabling plugins to check for conflicts ?

I see an error when I try to refresh the page with devtools google chrome enabled, right after installing the theme, without unnecessary plugins

I am not seeing the error in the developers console. Neither am i seeing a request for the content.js which is the file throwing the error.

Most probably a browser extension is causing the problem. Check by opening the site in a private/incognito browser or disabling all extensions.

yes, really, I didn’t think about it, thanks!

You're welcome

This archived topic is closed to new replies.