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.

Error: Evaluation failed: DOMException: Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules at _ (__puppeteer_evaluation_script__:4:20)

See original GitHub issue

On some local html I get the following error with v2.8.5 while v2.8.0 works:

Error: Evaluation failed: DOMException: Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules
    at _ (__puppeteer_evaluation_script__:4:20)

I cannot reproduce this locally with an example presentation. Using their online version works.

I used the docker approach.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
ahmadawaiscommented, May 30, 2019

I ran with decktape remark https://wordsesh2019.ahmadawais.com/ slide.pdf --chrome-arg=--disable-web-security

And that worked. Mention this in the readme as well. --chrome-arg=--allow-file-access-from-files didn’t work.

3reactions
astefanutticommented, May 30, 2019

@ahmadawais have you tried with the --chrome-arg=--allow-file-access-from-files option flag, or --chrome-arg=--disable-web-security?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught DOMException: Failed to read the 'cssRules' property
You can load and render them but, cannot access the content ... to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules.
Read more >
Failed to read the 'cssRules' property from 'CSSStyleSheet ...
DOMException : Failed to read the 'cssRules' property from 'CSSStyleSheet' (file system based access) #756.
Read more >
How to Fix the “Failed to Read the CSSRules Property From ...
Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules. Our monitoring tool also provides ...
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 >
Cannot access rules from external CSS style sheet
document.styleSheets[0].rules.length DOMException:Failed to read the 'rules' 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