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
Steps to Reproduce:
Set up a project with googleapis@^140.0.0 as a dependency.
Add @langchain/community@^0.2.27 as a dependency.
Run npm install.
Observe the dependency conflict error.
Error Message and Stack Trace (if applicable)
Detailed Description:
The specific error encountered is as follows:
npm ERR! While resolving: @langchain/community@0.2.27
npm ERR! Found: googleapis@140.0.0
npm ERR! node_modules/googleapis
npm ERR! googleapis@"^140.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional googleapis@"^126.0.1" from @langchain/community@0.2.27
npm ERR! node_modules/@langchain/community
npm ERR! peerOptional @langchain/community@"*" from langchain@0.2.16
npm ERR! node_modules/@langchain/community/node_modules/langchain
npm ERR! langchain@"~0.2.3" from @langchain/community@0.2.27
npm ERR! @langchain/community@"^0.2.27" from the root project
Description
We are encountering dependency conflicts due to the current version of googleapis used in our project. Our project requires googleapis@^140.0.0, but the @langchain/community package specifies a peer dependency on googleapis@^126.0.1. This mismatch is causing npm to fail in resolving the dependencies, leading to installation errors.
Proposed Solution:
We propose upgrading the googleapis dependency in the @langchain/community package to ^140.0.0 to align with the version required. This upgrade will help resolve the dependency conflict and allow for smoother installation and integration.
Impact:
This issue is blocking project setup and development, as we cannot proceed with the current dependency conflict. Resolving this will allow us to continue development without resorting to workaround options like --legacy-peer-deps, --force, or resolutions.
Additional Context:
We have attempted various solutions, including using the overrides option in package.json, but the conflict persists. Upgrading the googleapis version in the @langchain/community package seems to be the most viable solution.
System Info
node - v20.10.0
npm - v10.2.3
os- windows 10 pro
The text was updated successfully, but these errors were encountered:
dosubotbot
added
the
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
label
Aug 13, 2024
Checked other resources
Example Code
Steps to Reproduce:
Error Message and Stack Trace (if applicable)
Detailed Description:
The specific error encountered is as follows:
npm ERR! While resolving: @langchain/community@0.2.27
npm ERR! Found: googleapis@140.0.0
npm ERR! node_modules/googleapis
npm ERR! googleapis@"^140.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional googleapis@"^126.0.1" from @langchain/community@0.2.27
npm ERR! node_modules/@langchain/community
npm ERR! peerOptional @langchain/community@"*" from langchain@0.2.16
npm ERR! node_modules/@langchain/community/node_modules/langchain
npm ERR! langchain@"~0.2.3" from @langchain/community@0.2.27
npm ERR! @langchain/community@"^0.2.27" from the root project
Description
We are encountering dependency conflicts due to the current version of googleapis used in our project. Our project requires googleapis@^140.0.0, but the @langchain/community package specifies a peer dependency on googleapis@^126.0.1. This mismatch is causing npm to fail in resolving the dependencies, leading to installation errors.
Proposed Solution:
We propose upgrading the googleapis dependency in the @langchain/community package to ^140.0.0 to align with the version required. This upgrade will help resolve the dependency conflict and allow for smoother installation and integration.
Impact:
This issue is blocking project setup and development, as we cannot proceed with the current dependency conflict. Resolving this will allow us to continue development without resorting to workaround options like --legacy-peer-deps, --force, or resolutions.
Additional Context:
We have attempted various solutions, including using the overrides option in package.json, but the conflict persists. Upgrading the googleapis version in the @langchain/community package seems to be the most viable solution.
System Info
node - v20.10.0
npm - v10.2.3
os- windows 10 pro
The text was updated successfully, but these errors were encountered: