New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Evaluation failed: DOMException: Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules at _ (__puppeteer_evaluation_script__:4:20) #157
Comments
Would you be able to share a reproducer? If not, could you provide the complete stack trace and the presentation framework you use? It may be due to more restrictive security constraints introduced in newer version of Chrome. |
If I call the docker approach on slides that are hosted online, both 2.8.0 AND 2.8.5 are working
If I execute the same statement on a local file, I get:
Ignore the warnings about the missing CSS files there. But its interesting that both versions react in a different way to the missing CSS files (not shown here). |
Thanks for the reproducer. I confirm I can reproduce. It seems Chromium 64+ forbids the browser from accessing CSS rules for cross-domain sheets, which is what the Remark plugin does to adjust PDF export and that triggers the error while loading the presentation from the locally. I'm still trying to find the best strategy to deal with that new constraint... |
It should be fixed with 272b702 that ships with 2.8.6 release. |
I'm running into the same issue when trying to export a remarkjs presentation. I've tried adding the I'm using decktape version 2.8.9, and Chromium 70.0.3538.67 (Arch Linux). |
The It's not clear why that would fail even with the |
My bad, I saw the 2.8.9 npm badge and thought the documentation is for that version. How can I install 2.9.0? |
It's my bad actually, I completely forgot to publish the new version 🙃! It should be published now. |
No worries, 2.9.0 seems to work! 🎉 |
There is also an AUR package |
There's always an AUR package. :) |
It's again not working in the v2.9.2 :( |
@ahmadawais have you tried with the |
I ran with And that worked. Mention this in the readme as well. |
On some local html I get the following error with v2.8.5 while v2.8.0 works:
I cannot reproduce this locally with an example presentation. Using their online version works.
I used the
docker
approach.The text was updated successfully, but these errors were encountered: