whatisgithub

What is prisma-client-generated-cache-repro?

prisma/prisma-client-generated-cache-repro — explained in plain English

Analysis updated 2026-07-21 · repo last pushed 2023-01-25

JavaScriptAudience · developerComplexity · 2/5DormantSetup · moderate

In one sentence

A demo project that reproduces a Prisma caching bug on Vercel where stale generated code causes deployment failures after schema changes. Used to diagnose and test fixes.

Mindmap

mindmap
  root((repo))
    What it does
      Reproduces cache bug
      Step-by-step scenario
      Shows deployment failure
      Proves cache is cause
    Tech stack
      Prisma
      JavaScript
      Vercel
    Use cases
      Diagnose caching issue
      Test potential fixes
      Repeatable bug trigger
    Audience
      Prisma team
      Contributors
      Bug diagnosers
    Key concept
      Schema mismatch
      Stale generated code
      Clear build cache

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the Prisma build-cache bug on Vercel by following the step-by-step deployment scenario.

USE CASE 2

Test whether a potential fix to Prisma's caching behavior actually resolves the deployment failure.

USE CASE 3

Demonstrate to teammates or maintainers exactly how a schema change triggers stale generated code on hosting platforms.

What is it built with?

JavaScriptPrismaVercel

How does it compare?

prisma/prisma-client-generated-cache-repro00kaku/gallery-slider-block3rd-eden/ircb.io
LanguageJavaScriptJavaScriptJavaScript
Last pushed2023-01-252021-05-192016-11-16
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyeasy
Complexity2/52/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires deploying to Vercel with a configured database, you need a Vercel account and a database connection to trigger the bug.

No license information is provided in this repository, so usage rights are unclear.

So what is it?

This repository is a demonstration project that reproduces a specific caching bug affecting Prisma, a popular database toolkit, when deployed to hosting platforms like Vercel or Netlify. It exists to show developers exactly how to trigger the problem and prove that it happens, rather than to serve as a usable application. The project walks you through a step-by-step scenario. You start by setting up a simple database and deploying a basic web app to Vercel. Everything works fine at first. Then, you add a new field to your database schema, say, adding a "name" column to a user record, and update your code to use it. When you deploy the changed app a second time, the deployment fails with a confusing error. The app tries to use the new "name" field, but the deployed code is acting as if it only knows about the old structure. The fix is to force Vercel to completely clear its build cache and start fresh, which makes the error go away. The underlying issue is a mismatch between what your database looks like and what your application code expects. When you use a code generator like Prisma, it reads your database schema and creates ready-to-use code for querying it. Hosting platforms like Vercel speed up deployments by reusing previously built files from a cache. In this case, the platform serves up an old, cached version of the generated code even though your database and application code have moved on. Forcing the cache to clear rebuilds everything from scratch, syncing them back up. This project is intended for developers on the Prisma team or contributors trying to diagnose and fix this caching behavior. It provides a reliable, repeatable way to trigger the exact failure so someone can test whether a potential fix actually works. The README does not go into detail on broader context or long-term solutions, it is simply a focused guide to reproducing the bug.

Copy-paste prompts

Prompt 1
Help me set up this Prisma caching bug reproduction project locally. Walk me through cloning the repo, installing dependencies, and configuring the database connection so I can deploy it to Vercel.
Prompt 2
I deployed this Prisma cache reproduction project to Vercel and added a new field to my schema, but now the deployment fails with a stale code error. Guide me through clearing the Vercel build cache to fix it.
Prompt 3
I want to use this repo to test a potential fix for Prisma's generated code caching issue. What steps should I follow to reproduce the bug reliably, apply my fix, and verify the deployment succeeds without clearing the cache manually?

Frequently asked questions

What is prisma-client-generated-cache-repro?

A demo project that reproduces a Prisma caching bug on Vercel where stale generated code causes deployment failures after schema changes. Used to diagnose and test fixes.

What language is prisma-client-generated-cache-repro written in?

Mainly JavaScript. The stack also includes JavaScript, Prisma, Vercel.

Is prisma-client-generated-cache-repro actively maintained?

Dormant — no commits in 2+ years (last push 2023-01-25).

What license does prisma-client-generated-cache-repro use?

No license information is provided in this repository, so usage rights are unclear.

How hard is prisma-client-generated-cache-repro to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is prisma-client-generated-cache-repro for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.