Skip to content
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

Inline-CSS option Error: Unable to querySelector #27

Closed
jasan-s opened this issue Oct 31, 2017 · 3 comments
Closed

Inline-CSS option Error: Unable to querySelector #27

jasan-s opened this issue Oct 31, 2017 · 3 comments

Comments

@jasan-s
Copy link

jasan-s commented Oct 31, 2017

Using CRA if I add the following style link to my index.html in my public folder:
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/semantic.min.css" >

i also tried: <link rel="stylesheet" href="%PUBLIC_URL%/semantic.min.css">

And then I added the "inlineCss": true I get the error:

Error: Evaluation failed: Error: Unable to querySelector('.ui.labels a.active.label:ActiveHover:before') [SyntaxError: Failed to execute 'querySelector' on 'Document': '.ui.labels a.active.label:ActiveHover:before' is not a valid selector.]
    at objsCleaned.(anonymous function).selector (<anonymous>:153:21)
    at values.filter.selectorString (<anonymous>:75:30)
    at Array.filter (<anonymous>)
    at children.filter.child (<anonymous>:71:41)
    at Array.filter (<anonymous>)
    at clean (<anonymous>:68:27)
    at cleaner (<anonymous>:105:24)
    at links.filter.forEach.stylesheet (<anonymous>:129:42)
    at Array.forEach (<anonymous>)
    at stylesheetAstObjects (<anonymous>:124:10)
@stereobooster
Copy link
Owner

From my point of view this is bug of semantic-ui, which is using invalid selector :ActiveHover. If this is valid selector (I haven't heard about one), then this is bug of puppeteer.

@stereobooster
Copy link
Owner

Actually it was fixed in minimalcss peterbe/minimalcss#39

@stereobooster
Copy link
Owner

TODO: use new version of minimalcss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants