pinecone-io / pinecone-ts-client

The official TypeScript/Node client for the Pinecone vector database
https://www.pinecone.io
Apache License 2.0
182 stars 38 forks source link

[Bug] Pinecone 2.0.0 Langchain Peer Dependency ISsue #193

Closed YourAverageTechBro closed 1 month ago

YourAverageTechBro commented 8 months ago

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

  1. Install the latest pinecone typescript client with npm install @pinecone-database/pinecone
  2. install langcahin with 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

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

Environment

- **OS**: Deploying NextJS application onto vercel
- **Language version**: 
- **Pinecone client version**: 2.0.0

Additional Context

No response

anawishnoff commented 1 month ago

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!