GenkitG
Genkitโ€ข12mo ago
verbal-lime

Hello, I am calling an ai.defineFlow as

Hello, I am calling an ai.defineFlow as part of my cloud function but I am getting this error
TypeError: Cannot destructure property 'shape' of 'this._getCached(...)' as it is undefined.
    at ZodObject._parse (/workspace/node_modules/zod/lib/types.js:1994:17)
    at ZodObject._parseSync (/workspace/node_modules/zod/lib/types.js:117:29)
    at ZodObject.safeParse (/workspace/node_modules/zod/lib/types.js:147:29)
    at AiTranslationService.process (/workspace/lib/services/ai-translation/index.js:57:71)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async /workspace/lib/index.js:20:12
that error is when I deployed the CF. Some idea?
Was this page helpful?