Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

396
Views
How to fix 'Error: unmatched pseudo-class :flex' in cheerio

I'm using node.js and cheerio. When trying to find an element inside a selector I get the error 'unmatched pseudo-class :flex'

const $ = cheerio.load(data)
const name = $('#__next > div.w-full.py-10.flex.flex-col.items-center.space-y-3 > div:nth-child(1) > div.flex.hidden.md\:flex.w-full.items-center.gap-5.md\:gap-2 > div.flex.w-64.items-center.gap-3 > h2')

I've hear the same thing happens with :first which can be replaced with .first() but i'm not sure what I should do with flex.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!