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.

SyntaxError: Unmatched selector

See original GitHub issue

I’m getting the following error while selecting an element:

SyntaxError: Unmatched selector:  .et_social_all_button i.et_social_icon.et_social_icon_all_button
        at parse (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/css-what/index.js:85:9)
        at compileUnsafe (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/css-select/lib/compile.js:31:14)
        at select (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/css-select/index.js:18:49)
        at CSSselect (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/css-select/index.js:41:9)
        at initialize.exports.find (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/cheerio/lib/api/traversing.js:40:21)
        at initialize.module.exports (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/cheerio/lib/cheerio.js:88:18)
        at new initialize (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/cheerio/lib/static.js:34:20)
        at initialize (/Users/gijo/Desktop/workspace/flying-press-optimizer/node_modules/cheerio/lib/static.js:31:14)
        at /Users/gijo/Desktop/workspace/flying-press-optimizer/src/optimizer/css/get-used-css.js:65:18
        at Array.filter (<anonymous>)

The selector syntax .et_social_all_button i.et_social_icon.et_social_icon_all_button seems to be valid. But what could be the reason for this error?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fb55commented, Dec 22, 2020

There is a new RC that includes all changes.

0reactions
gijo-varghesecommented, Dec 19, 2020

@fb55 anyway I can use 1.0.0 in production? Maybe something like npm i cheerio@next is available?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cheerio unmatched selector error while selecting plain text
map see the 'TEXT WITHOUT TAG', it throws an error like this: Unmatched selector: ... Which is expected because it hasn't any selectors....
Read more >
SyntaxError: unmatched ')' Python Coding - YouTube
Welcome to my channel. Please Subscribe, like and share.It is greatly appreciated.#legendaryprogrammerAre you struggling with coding such as ...
Read more >
Selectors - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Cheerio unmatched selector error while selecting plain text ...
[Solved]-Cheerio unmatched selector error while selecting plain text-node.js. Search. score:0. Your element has class foo and selector not:
Read more >
JSOC/base/export/webapps/js/jquery-2.1.0.js - view - 1.1
0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and...
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