DEV Community

Discussion on: Building a web scraper in Typescript

Collapse
 
stokeergh profile image
stokeergh

Hi, there is an error with Cherio - (... const statsTable: Cheerio ...),
[Cannot find name 'Cheerio'.ts(2304)], do you know if something was changed?

Collapse
 
gitnan profile image
gitnan

If it is still needed, replace:

const statsTable: Cheerio = $('.statsTableContainer > tr');

with

const statsTable: cheerio.Cheerio = $('.statsTableContainer > tr');