RayyR
Convex Community3y ago
4 replies
Rayy

Unable to setup pinecone with convex

Why am I getting this error, when trying to setup Pinecone under a lib folder in my convex.

Error:
✖ Error: Unable to push deployment config to https://....
400 Bad Request: UnableToPush: Hit an error while pushing:
Loading the pushed modules encountered the following
    error:
Failed to analyze lib/pinecone.js: Uncaught EvalError: Code generation from strings disallowed for this context
    at new Function (<anonymous>)


This is how I am setting up my pinecone.
const pinecone = new Pinecone({
  apiKey: process.env.PINECONE_API_KEY as string,
  environment: process.env.PINECONE_ENVIRONMENT as string,
});
Was this page helpful?