500: INTERNAL_SERVER_ERRORCode: `FUNCTION_INVOCATION_FAILED`

Hello! I’m bit rookie in all this but i have app working ok on vercel
than i added @google/genai package - it works ok locally
but when i deploy it to vercel i got

**500**: INTERNAL_SERVER_ERRORCode: `FUNCTION_INVOCATION_FAILED` 

in logs i see this

Cannot find module '/var/task/node_modules/@google/genai/dist/node/index.cjs'

Did you forget to add it to "dependencies" in `package.json`?
Node.js process exited with exit status: 1. The logs above can help with debugging the issue.

Hey, @aunthazel! Welcome to the Vercel Community :waving_hand:

Have you tried the troubleshooting steps outlined here?

Yes i do
as i said error logs in Vercel dashboard indicate to @google/genai package wich works perfect localy.

What does your package.json look like?

I’m not alone with this problem as i can see

The error suggests the package is being found but the specific entry point file isn’t there, which is different from a completely wrong package name.

Could you share the relevant code where you’re importing and using the Google AI functionality? That would help pinpoint the exact issue. :slight_smile:

of course, here is all where i use genai


Hi. is there any solutions?