How to debug “Type error: Type instantiation is excessively deep and possibly infinite.” on Vercel / Next.js?
I am getting this error when I deploy my simple Next.js app to Vercel (and only on deploy, locally it never has this error):
Vercel AI SDK Google plugin
Type ‘GoogleGenerativeAILanguageModel’ is not assignable to type ‘LanguageModelV1’.
The types of ‘doGenerate(…).then’ are incompatible between these types.
Vercel Speed insights failed to compile
I am trying to implement speed insights on a Vercel deployment and when building it’s giving me the following error: