Repository navigation
Description
Bug description
nestjs + prisma + webstorm (lang)
Since starting to use prisma.config.ts, it has been inconvenient that modifying and saving schema files takes over 10 seconds.
There are many models contained within 7 Prisma schema files.
The Prisma language server console output shows no specific logs, so I don't know how to improve this again.
This issue occurs regardless of whether using VS Code or WebStorm.
(The WebStorm language server is outdated, so I'm using a separately updated version. Even when using the latest version of the Prisma extension in VS Code, the same issue persists.)
The prisma.config.ts file is not doing anything special:
import dotenv from 'dotenv';
import { PrismaConfig } from 'prisma';
import path from 'path';
dotenv.config();
export default {
schema: path.join('prisma'),
migrations: {
path: path.join('prisma', 'migrations'),
seed: 'ts-node -r tsconfig-paths/register --transpile-only prisma/seeds/core/execute.ts',
},
// views: {
// path: path.join('src', 'database', 'views'),
// },
// typedSql: {
// path: 'src/database/typed-sql',
// },
} satisfies PrismaConfig;Severity
🚨 Critical: Data loss, app crash, security issue
Reproduction
Expected vs. Actual Behavior
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
Prisma Schema & Queries
// Add relevant schema.prisma snippet// Add relevant Prisma Client queryPrisma Config
// Add your `prisma.config.ts`Logs & Debug Info
// Debug logs here
Environment & Setup
- OS:
- Database:
- Node.js version:
Prisma Version
// Prisma version output
Activity
samirant15 commentedon Oct 7, 2025
I'm having the same issue, it is painful to wait so long on each save 😩
wh1337 commentedon Oct 16, 2025
Can confirm that this is extremely slow, upwards of 3 minutes just to try and format and save the prisma file. Getting the following abridged logs:
Our current
schema.primsaand our
prisma.config.tsxhp443 commentedon Oct 23, 2025
move
prisma/schema.prismatoprisma/models/schema.prismacan fixed. Why?m9tdev commentedon Oct 23, 2025
Same problem here. Formatting is unbearably slow. Moving the schema file didn't make a difference for me. Reverted for now
xhp443 commentedon Oct 24, 2025
prisma/language-tools#1804 (comment)
m9tdev commentedon Oct 24, 2025
Thanks! Moving
schema.prismatoprisma/models/schema.prismaand also adding"models"to the schema path in the config works indeed!DubG1 commentedon Nov 25, 2025
Wow this fixe it, we already had models split up into multiple files so all i did was adding this to the schema in the config and now it saves and formats instantly thank you!