Skip to content

Odd issue with Cheerio #687

@cfjedimaster

Description

@cfjedimaster

I installed Cheerio via RunJS's NPM support and tried a super simple script:

import * as cheerio from 'cheerio';

const $ = await cheerio.fromURL('https://www.raymondcamden.com');

I got:

Uncaught TypeError: this.timeout.unref is not a function

So my assumption was that it was a Cheerio issue. I reported it here, cheeriojs/cheerio#4310 (comment), and figured out that the same code works just fine in a simple file on my file system. It only shows this issue in RunJS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions