-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Checked other resources
- This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
- I added a very descriptive title to this issue.
- 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
I want to upgrade a project from node 22 to node 24 LTS version. Noticed that when building the container the following error occurs
1.882 npm error Could not resolve dependency:
1.882 npm error peerOptional better-sqlite3@">=9.4.0 <12.0.0" from @langchain/community@0.3.34
1.882 npm error node_modules/@langchain/community
1.882 npm error @langchain/community@"^0.3.31" from the root project
From better-sqlite3
we need to upgrade to 12 version to support it.
Found 8262 ticket but it is not clear the path to follow.
Error Message and Stack Trace (if applicable)
Error detail
=> ERROR [dependencies 1/1] RUN npm install 1.9s
------
> [dependencies 1/1] RUN npm install:
1.881 npm error code ERESOLVE
1.881 npm error ERESOLVE could not resolve
1.881 npm error
1.882 npm error While resolving: @langchain/community@0.3.34
1.882 npm error Found: better-sqlite3@12.4.1
1.882 npm error node_modules/better-sqlite3
1.882 npm error better-sqlite3@"^12.0.0" from the root project
1.882 npm error
1.882 npm error Could not resolve dependency:
1.882 npm error peerOptional better-sqlite3@">=9.4.0 <12.0.0" from @langchain/community@0.3.34
1.882 npm error node_modules/@langchain/community
1.882 npm error @langchain/community@"^0.3.31" from the root project
1.882 npm error
1.882 npm error Conflicting peer dependency: better-sqlite3@11.10.0
1.882 npm error node_modules/better-sqlite3
1.882 npm error peerOptional better-sqlite3@">=9.4.0 <12.0.0" from @langchain/community@0.3.34
1.882 npm error node_modules/@langchain/community
1.882 npm error @langchain/community@"^0.3.31" from the root project
Description
Cannot upgrade from node 22 to 24 version.
System Info
Using 22.20.0
and wanting to upgrade to 24.10.0
version
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working