Typescript - init VertexAI TypeError: VertexAI is not a constructor #3859
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
samples
Issues that are directly related to samples.
triage me
I really want to be triaged.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Describe the issue
import { VertexAI } from "@google-cloud/vertexai";
const vertexAI = new VertexAI({project: project, location: location});
Created this as per the Vertex AI SDK but inside a .tsx file instead of a .js file. Error is as follows:
TypeError: google_cloud_vertexai__WEBPACK_IMPORTED_MODULE_3_.VertexAI is not a constructor
Could you provide support for Typescript use?
The text was updated successfully, but these errors were encountered: