This error occurs when the client tries to read environment variables in an environment that does not have access to the Node.js global process.env.
process.env
If you are seeing this error, you will need to configure the client by passing configuration values to the Pinecone constructor.
Pinecone
import { Pinecone } from '@pinecone-database/pinecone';const pinecone = new Pinecone({ apiKey: 'YOUR_API_KEY',}) Copy
import { Pinecone } from '@pinecone-database/pinecone';const pinecone = new Pinecone({ apiKey: 'YOUR_API_KEY',})
Instructions for configuring Pinecone
Optional
The underlying error, if any.
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
This error occurs when the client tries to read environment variables in an environment that does not have access to the Node.js global
process.env
.If you are seeing this error, you will need to configure the client by passing configuration values to the
Pinecone
constructor.See
Instructions for configuring Pinecone