WindmillWWindmill
Powered by
cali (brazil)C
Windmill•3y ago•
3 replies
cali (brazil)

Importing cheerio

I'm trying to use cheerio, but I'm getting an error.

1. I use
import * as cheerio from "cheerio";
import * as cheerio from "cheerio";

2. So when I try to use
const $ = cheerio.load(body);
const $ = cheerio.load(body);

3. I'm getting the message:
TypeError: cheerio.load is not a function. (In 'cheerio.load(body)', 'cheerio.load' is undefined)
TypeError: cheerio.load is not a function. (In 'cheerio.load(body)', 'cheerio.load' is undefined)


I'm probably doing something wrong, but what could it be?
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Importing docx
DevonDDevon / help
12mo ago
Importing a workspace
d10sfanDd10sfan / help
2y ago
problem importing azure.storage.filedatalake
MearthyMMearthy / help
14mo ago
Importing pgClient when using bun
KanaKKana / help
3y ago