IonicaBizau / scrape-it

🔮 A Node.js scraper for humans.

Home Page:http://ionicabizau.net/blog/30-how-to-write-a-web-scraper-in-node-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find name Cheerio / CheerioSelector / CheerioStatic

clapointe opened this issue · comments

commented

I have scrape-it as a dependency of another package in my project (nest-crawler). I encountered these 3 errors in my project when trying to start nestjs:
Cannot find name Cheerio / CheerioSelector / CheerioStatic

I searched around for a while before finding how to fix it for my project: adding "@types/cheerio": "0.22.13" in the devDependencies (note: not "^0.22.13")

Since that's just a quick fix, I figured I'd open an issue in case anyone else is having this problem.

@clapointe
In case you're still having issue, give scrape-brrr a try!
It's a similar scraper created to solve my own niche, and you may find it useful