LivePage icon indicating copy to clipboard operation
LivePage copied to clipboard

Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at livePage.scanCSS().

Open samussiah opened this issue 6 years ago • 5 comments

Just started running into this with Chrome 64. The stylesheet in question is this one: https://rawgit.com/RhoInc/Webcharts/master/css/webcharts.css. It's being pulled into a simple index.html file and loaded on a dev server. Any ideas what's going on?

samussiah avatar Jan 30 '18 20:01 samussiah

No help, but I am having the same issue. It just started.

ashleysummers avatar Feb 01 '18 17:02 ashleysummers

@samussiah @ashleysummers Thank you for bringing this to my attention. I last tested LivePage on Chrome 63 & it looks like Chrome 64 made a breaking change that made reading CSS rules on external stylesheets throw an error.

I issued a quick patch on the 2nd of Feburary (Version 2.6.7) so LivePage should handle this error more gracefully.

Could you try the latest version of LivePage & feedback to me? :) 👍

MikeRogers0 avatar Feb 05 '18 19:02 MikeRogers0

Updated to 2.6.7 and it is working! :100:

ashleysummers avatar Feb 05 '18 19:02 ashleysummers

Likewise, much obliged!

samussiah avatar Feb 05 '18 21:02 samussiah

https://chromium.googlesource.com/chromium/src/+/56db65a6d5d214d238ca16a90fea118571d5c8e6 - This might have been the underlying change which borked LivePage.

Going forward I'll discover @import's via AJAX & Regex (I think).

MikeRogers0 avatar Feb 07 '18 09:02 MikeRogers0