'normalizeWhitespace' does not exist in type 'CheerioOptions' Node

49 views Asked by At

After updating Node module cheerio from 0.22.0 to 1.0.0-rc.12 I have the following error

Object literal may only specify known properties, and 'normalizeWhitespace' does not exist in type 'CheerioOptions'.

normalizeWhitespace: true,

Code:

const $ = load(html, {
  decodeEntities: true,
  normalizeWhitespace: true,
});

If I remove the option the behaviour changes but I don't find which option should I use instead.

I have node v18

0

There are 0 answers