Closed YourAverageTechBro closed 1 month ago
When upgrade pinecone to 2.0.0 to get access to the serverless functions, I am getting a peer dependency error with Langchain when building my app.
I should not be getting a peer dependency error and my app should build correctly
npm install @pinecone-database/pinecone
npm install langchain
Try to build with npm run build or deploy app to vercel (which is what I did) and then the following peer dependency issue occurs.
npm run build
npm ERR! While resolving: langchain@0.1.3 npm ERR! Found: @pinecone-database/pinecone@2.0.0 npm ERR! node_modules/@pinecone-database/pinecone npm ERR! @pinecone-database/pinecone@"^2.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional @pinecone-database/pinecone@"^1.1.0" from langchain@0.1.3 npm ERR! node_modules/langchain npm ERR! langchain@"^0.1.3" from the root project npm ERR! npm ERR! Conflicting peer dependency: @pinecone-database/pinecone@1.1.3 npm ERR! node_modules/@pinecone-database/pinecone npm ERR! peerOptional @pinecone-database/pinecone@"^1.1.0" from langchain@0.1.3 npm ERR! node_modules/langchain npm ERR! langchain@"^0.1.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! /vercel/.npm/_logs/2024-01-16T16_47_34_489Z-eresolve-report.txt
- **OS**: Deploying NextJS application onto vercel - **Language version**: - **Pinecone client version**: 2.0.0
No response
Hey @YourAverageTechBro, closing this issue for now as it's stale and we've had a few releases since. Please reopen if this is still an issue. Thanks!
Is this a new bug?
Current Behavior
When upgrade pinecone to 2.0.0 to get access to the serverless functions, I am getting a peer dependency error with Langchain when building my app.
Expected Behavior
I should not be getting a peer dependency error and my app should build correctly
Steps To Reproduce
npm install @pinecone-database/pinecone
npm install langchain
Try to build with
npm run build
or deploy app to vercel (which is what I did) and then the following peer dependency issue occurs.Relevant log output
Environment
Additional Context
No response