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
I searched the LangChain.js documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
I am sure that this is a bug in LangChain.js rather than my code.
The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
# run in new folder
pnpm init
pnpm i langchain @langchain/community
pnpm i puppeteer@19
# WARN deprecated puppeteer@19.11.1: < 22.8.2 is no longer supported
pnpm i puppeteer@latest
# WARN Issues with peer dependencies found# .# ├─┬ langchain 0.2.11# │ └── ✕ unmet peer puppeteer@^19.7.2: found 22.14.0# └─┬ @langchain/community 0.2.20# └── ✕ unmet peer puppeteer@^19.7.2: found 22.14.0
Error Message and Stack Trace (if applicable)
WARN deprecated puppeteer@19.11.1: < 22.8.2 is no longer supported
or
WARN Issues with peer dependencies found
.
├─┬ langchain 0.2.11
│ └── ✕ unmet peer puppeteer@^19.7.2: found 22.14.0
└─┬ @langchain/community 0.2.20
└── ✕ unmet peer puppeteer@^19.7.2: found 22.14.0
Description
The package langchain and @langchain/community have an optional peer dependencies on a deprecated puppeteer version.
langchain & @langchain/community depends on puppeteer@^19.7.2 puppeteer supported versions are 22.8.2 or higher.
suggested fix: either the peer dependency either gets all versions: ^19.7.2 || ^20.0.0 || ^21.0.0 || ^22.0.0 (there have been no breaking changes that langchain makes use of internally) or simply update to ^22.0.0
Hey @hro-mrjvs! 👋 I'm here to help you with bugs, questions, and becoming a contributor. Let's squash those bugs together while we wait for a human maintainer.
To address the issue with the deprecated Puppeteer version in the langchain and @langchain/community packages, you can update the peerDependencies in the package.json files of both packages. Here are the steps:
Update langchain package:
Modify the peerDependencies section in the package.json file of the langchain package to include the newer versions of Puppeteer:
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
or
Description
The package
langchain
and@langchain/community
have an optional peer dependencies on a deprecated puppeteer version.langchain
&@langchain/community
depends onpuppeteer@^19.7.2
puppeteer
supported versions are22.8.2
or higher.suggested fix: either the peer dependency either gets all versions:
^19.7.2 || ^20.0.0 || ^21.0.0 || ^22.0.0
(there have been no breaking changes that langchain makes use of internally) or simply update to^22.0.0
System Info
@langchain/community 0.2.20
langchain 0.2.11
pnpm 9.2.0
node v20.1.0
MacOS
The text was updated successfully, but these errors were encountered: