mendableai / firecrawl

🔥 Turn entire websites into LLM-ready markdown or structured data. Scrape, crawl and extract with a single API.
https://firecrawl.dev
GNU Affero General Public License v3.0
18.76k stars 1.44k forks source link

[Bug] Module '"cheerio"' has no exported member 'AnyNode' #681

Closed yuanzhiwei closed 1 month ago

yuanzhiwei commented 2 months ago

Describe the Bug node: v20.17.0 pnpm: 9.10.0 cheerio: 1.0.0 firecrawl: clone master

Start firecrawl locally, pnpm install is down, after pnpm run workers and pnpm run start, a while later the following error will be reported, and the test example cannot be accessed

image

image

kk-fan commented 1 month ago

I have also encountered this problem. Is there a solution?

L1aoxw commented 1 month ago

You can try changing the version of cheerio from 1.0.0 to 1.0.0-rc.12 npm install cheerio@1.0.0-rc.12

kk-fan commented 1 month ago

You can try changing the version of cheerio from 1.0.0 to 1.0.0-rc.12您可以尝试将 cheerio 的版本从 1.0.0 更改为 1.0.0-rc.12 npm install cheerio@1.0.0-rc.12

开始使用yarn,换成pnpm解决,感谢。

rafaelsideguide commented 1 month ago

Using pnpm solves the problem. Closing for now. Feel free to reopen the issue if you continue to experience this problems.

aar2dee2 commented 3 weeks ago

For anyone running into this, use pnpm version 9.12.2

swyxio commented 2 weeks ago

recorded my guide here getting this running in case it helps someone https://youtu.be/LHqg5QNI4UY