Fix backend npm install ERESOLVE peer dependency conflict#89
Open
Vedhant26 wants to merge 1 commit into
Open
Conversation
Owner
|
@Vedhant26 See carefully, your PR includes commits for resolving other issues. Remove those commits of 23rd and 27th May and only keep the relevant commit(s). |
5363b28 to
954d00e
Compare
Author
|
Hi @avishek0769! Thanks for the feedback. I've removed the unrelated commits from the 22nd and 26th of May, and deleted the package-lock.json file since the project uses pnpm. The PR now only contains the specific .npmrc fix for the peer dependency conflict! |
Author
|
Ah, good catch! I've updated the PR description to reflect the pnpm command. Thank you for reviewing! |
Owner
|
Okay, nice. I will merge it in a few days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
.npmrcfile to thebackend/directory.legacy-peer-deps=trueinside.npmrc.Why
When running
npm installin the backend, it fails with anERESOLVEerror because of a peer dependency conflict betweenmem0ai@2.4.6and@qdrant/js-client-rest. Themem0aipackage enforces strict older peer dependencies.By adding
.npmrcwithlegacy-peer-deps=true, it resolves the issue by allowing npm to accept an incorrect but functional dependency resolution without breaking the installation process.How to test
Run the relevant test suite:
�ash id=t1x9ab cd backend npm installExpected result:
ERESOLVEpeer dependency errors.Screenshots (if UI change)
N/A (Backend/API/Logic change only)
Related issue
Closes #88
Pre-Submission Checklist
fix/backend-npm-conflict