<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdulmumeen Junaid-Eko</title>
    <description>The latest articles on DEV Community by Abdulmumeen Junaid-Eko (@abdulmumeen_junaideko_d8).</description>
    <link>https://dev.to/abdulmumeen_junaideko_d8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3825530%2Fc8dea077-6eb5-445a-a30e-4807e402b0c7.jpg</url>
      <title>DEV Community: Abdulmumeen Junaid-Eko</title>
      <link>https://dev.to/abdulmumeen_junaideko_d8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdulmumeen_junaideko_d8"/>
    <language>en</language>
    <item>
      <title>How I Fixed Genkit's gRPC Edge Runtime Error on Vercel (And What I Learned)</title>
      <dc:creator>Abdulmumeen Junaid-Eko</dc:creator>
      <pubDate>Sun, 15 Mar 2026 15:43:58 +0000</pubDate>
      <link>https://dev.to/abdulmumeen_junaideko_d8/how-i-fixed-genkits-grpc-edge-runtime-error-on-vercel-and-what-i-learned-m8o</link>
      <guid>https://dev.to/abdulmumeen_junaideko_d8/how-i-fixed-genkits-grpc-edge-runtime-error-on-vercel-and-what-i-learned-m8o</guid>
      <description>&lt;p&gt;If you've tried deploying a Next.js app with Google Genkit to Vercel and hit this error:&lt;br&gt;
Module not found: Can't resolve '@grpc/grpc-js'&lt;br&gt;
or any Edge Runtime incompatibility error related to gRPC — this post is for you.&lt;/p&gt;

&lt;p&gt;The Problem&lt;br&gt;
Genkit uses gRPC under the hood for some of its internal communication. Vercel's Edge Runtime does not support Node.js native modules like gRPC. This means any Genkit import in a file that gets bundled for Edge Runtime will cause the entire deployment to fail.&lt;br&gt;
The error is cryptic. The build logs don't always point directly at Genkit. I spent hours chasing TypeScript errors and stale commits before finding the real issue.&lt;/p&gt;

&lt;p&gt;The Fix&lt;br&gt;
Remove the Genkit AI module entirely from any file that runs on the Edge Runtime. In my case, I had to remove the entire AI integration from the API route and move the logic server-side only.&lt;br&gt;
If you're using Next.js, make sure your Genkit calls only happen in files that run in the Node.js runtime, not Edge. Add this to your API route if needed:&lt;br&gt;
export const runtime = 'nodejs';&lt;br&gt;
Other Issues I Hit&lt;br&gt;
Beyond the gRPC error, I also dealt with TypeScript errors blocking the build and a stale commit deployment where Vercel was deploying an old version. Always check your deployment logs and confirm the commit Vercel is actually building.&lt;/p&gt;

&lt;p&gt;The Result&lt;br&gt;
After removing the AI module from the Edge Runtime context, the app deployed cleanly. I later moved API keys to environment variables and added Firestore-based rate limiting.&lt;br&gt;
The live app is Repo Ranger — a GitHub repository discovery tool at studio-gules-one.vercel.app&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>vercel</category>
    </item>
  </channel>
</rss>
