You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const loader = new CheerioWebBaseLoader("https://en.wikipedia.org/wiki/2023_Hawaii_wildfires");
const data = await loader.load();
without it you get to the .splitDocuments without any data.
The cheerio module needs to be installed, i.e. npm install cheerio there is an error generated otherwise
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'cheerio' imported from /../node_modules/langchain/dist/document_loaders/web/cheerio.js
at new NodeError (node:internal/errors:405:5)
at packageResolve (node:internal/modules/esm/resolve:887:9)
at moduleResolve (node:internal/modules/esm/resolve:936:20)
at defaultResolve (node:internal/modules/esm/resolve:1129:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ESMLoader.import (node:internal/modules/esm/loader:524:22)
at importModuleDynamically (node:internal/modules/esm/translators:110:35)
at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) {
code: 'ERR_MODULE_NOT_FOUND'
}
The text was updated successfully, but these errors were encountered:
docs/tutorials/langchainjs.md
await
inwithout it you get to the
.splitDocuments
without any data.npm install cheerio
there is an error generated otherwiseThe text was updated successfully, but these errors were encountered: