Skip to content

Large schemas lead bigger typescript files causing ts-server crashes #28776

Open

Description

@yigitahmetsahin

Bug description

App takes too long to compile compared to "prisma-client-js" provider. After compilation if watch mode is enabled it takes too long to recompile incrementally. IDE also crashes for intellisense/autocompletion. Eslint server also crashes but can be fixed by selecting "recommended" instead of "recommendedTypeChecked" which is not favorable.

Severity

🚨 Critical: Data loss, app crash, security issue

Reproduction

`generator client {
provider = "prisma-client"
output = "../client"
engineType = "client"
runtime = "nodejs"
moduleFormat = "cjs"
}

datasource db {
provider = "mysql"
}`

Expected vs. Actual Behavior

It should work same as Prisma 6.19.

Frequency

Consistently reproducible

Does this occur in development or production?

Only in development (e.g., CLI tools, migrations, Prisma Studio)

Is this a regression?

Workaround

Using d.ts files.

Prisma Config

import 'dotenv/config';
import { defineConfig, env } from 'prisma/config';

export default defineConfig({
schema: 'prisma/schema',
migrations: {
path: 'prisma/migrations',
seed: 'tsx prisma/seeders/seed.ts',
},
datasource: {
url: env('DATABASE_URL'),
},
});

Environment & Setup

Macbook Pro -> M3 Pro 18GB Ram
Node.js -> v24.11.0
Prisma&Prisma Client -> 7.0.1
Generated Client:
(19,3 MB on disk) for 337 items
App: Nest.js -> 11.0.20

Prisma Version

7.0.1

Activity

  1. added a commit that references this issue on Dec 3, 2025
    57c24b2
  2. jacek-prisma commented on Dec 11, 2025

    @jacek-prisma
    Contributor

    Hi @yigitahmetsahin
    Can you provide a reproduction?

  3. added
    bug/0-unknown
    on Dec 11, 2025
  4. Xetoxyc commented on Jan 22, 2026

    @Xetoxyc

    @jacek-prisma
    is there a way to give you a closed schema. As i do not to "open-source" my db schema.

    We also have the problem with completely breaking our TS performance and got to wait 5-15 seconds until TS getting resolved in vscode/cursor after any change.

  5. alexwork1611 commented on Apr 1, 2026

    @alexwork1611

    Please make this a priority @prisma-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/0-unknownkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions