question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

See original GitHub issue

Hello! I’m super intrigued and curious to test Aspecty. I’m getting the following error and not sure why. Can you shed any light?

I tried on 2 different test sites, both with Local by Flywheel.

Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
    at Array.from.sheet (https://sandbox.dev/wp-content/themes/sandbox/assets/js/aspecty.js?ver=0.0.12:116:9)
    at Function.from (<anonymous>)
    at Object.aspecty.findRules (https://sandbox.dev/wp-content/themes/sandbox/assets/js/aspecty.js?ver=0.0.12:113:10)
    at aspecty.load (https://sandbox.dev/wp-content/themes/sandbox/assets/js/aspecty.js?ver=0.0.12:99:12)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JiveDigcommented, Jul 27, 2018

Okay wow Vanilla JS is working really well and a lot less code than my jQuery version. I’m going to close this, but I owe you a 🍺or ☕️! Your snippets were a great head start, very much appreciated!

0reactions
JiveDigcommented, Jul 27, 2018

Thanks Tom, i’ll try those. I’m using jQuery now (cause JS is my weakest language!) and was very excited to see Aspecty. Our theme uses lots of Flexbox CSS and we only support IE11+ anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught DOMException: Failed to read the 'cssRules' property
Uncaught DOMException : Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules. Cross Domain Stylesheet.
Read more >
How to Fix the “Failed to Read the ... - Better Programming
Uncaught DOMException : Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules. Our monitoring tool also provides ...
Read more >
Failed to read the 'cssRules' property from 'CSSStyleSheet ...
UPDATE: I can confirm that this issue affects iOS when using WKWebView with loadFileURL / allowingReadAccessToURL IF there's a local stylesheet ...
Read more >
ATF - Failed to read the 'cssRules' property from - ServiceNow
ATF Test: Assert Text on Page (Custom UI). - Error Message: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules.
Read more >
Uncaught DOMException: Failed to read the 'cssRules' property
here's the error code from chrome. Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found