Resolution and Alignment of Peer Dependency Issues within LibreChat's NPM Package Configuration #5559
Unanswered
DannyJanmaat
asked this question in
Troubleshooting
Replies: 1 comment
-
This wouldn’t happen on fresh installation (container images are being successfully built), which you can do with it could also be due to how you’re merging changes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
While performing an npm update, I encountered a dependency resolution error (ERESOLVE) caused by conflicting versions of packages associated with langchain and its peer dependencies, notably ignore. The error indicated mismatched versions, leading to an inability to resolve the dependency tree within the LibreChat project. Upon attempting to update relevant packages, deprecated warnings emerged for certain libraries, suggesting further attention be given to the evolving state of these dependencies.
Steps to Reproduce
Set Up the Project Environment:
Ensure the project directory contains package.json configured for the LibreChat project.
Install Initial Dependencies:
Run npm install in the project's root directory to install all required dependencies specified in package.json.
Attempt to Update Dependencies:
Execute the command npm update to update existing dependencies to their latest compatible versions.
Observe Dependency Resolution Error:
Notice the appearance of the ERESOLVE error in the console, indicating unresolved peer dependency conflicts among packages like langchain and ignore.
Attempt with Legacy Peer Deps:
Retry with npm update --legacy-peer-deps and observe any deprecated package warnings related to specific libraries, such as @aws-sdk/* and eslint.
Review Error Logs:
Examine the error logs and console output for detailed information on specific dependency conflicts and recommendations.
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
Solution. modify in package.json file :
"devDependencies": {
"@axe-core/playwright": "^4.9.1",
"@playwright/test": "^1.38.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"cross-env": "^7.0.3",
"eslint": "latest", // Ensures the latest non-deprecated version
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.9.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"jest": "^29.5.0",
"lint-staged": "^15.2.10",
"prettier": "^2.8.8",
"prettier-eslint": "^15.0.1",
"prettier-eslint-cli": "^7.1.0",
"prettier-plugin-tailwindcss": "^0.2.2"
},
"dependencies": {
"ignore": "~7.0.0", // Ensure consistency without major version shifts
"langchain": "0.2.x", // Align with peer dependencies
"@langchain/community": "0.3.x" // Ensure compatibility with used libraries
}
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions