published fresh until

Prisma 54023 / Drizzle TS2307: how do I fix them?

Summary As of November 2026, Prisma's wide-include fix is merged; restrict projections on affected builds and consider the reported Drizzle rollback for config-only TS2307 failures; these are distinct prerelease problems, not reasons to alter database tables (checked 2026-11-24).

Not for Drizzle schema deployment with push versus generate/migrate, see drizzle-kit-push-or-generate-migrate-which-one-for-my-project

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

For the reported prereleases, SqlQueryError: cannot pass more than 100 arguments to a function — check whether a to-many include projects at least 51 columns. error TS2307: Cannot find module '@electric-sql/pglite' or its corresponding type declarations. — check config-only type checking on drizzle-kit@1.0.0-rc.5 with skipLibCheck disabled.

Prisma's direct wide-model reads are reported unaffected; Drizzle can fail when the config imports only defineConfig, without selecting PGlite.

First actions: for affected Prisma builds, narrow include('comments', (c) => c.select('id', 'c1')) to the caller's required fields, at most 50 columns. For Drizzle, if compatible, trial pnpm add -D --save-exact drizzle-kit@1.0.0-rc.4, then pnpm exec tsc -p tsconfig.json; review ORM/kit compatibility and the lockfile.

Evidence: each error has a reporter's reproduction, including the projection workaround and rollback comparison; Drizzle also has an independent reproduction in the issue discussion. No queries, rollback or type checks were run here; Drizzle has independent confirmation in the issue discussion, while a released fix remains unestablished in the Drizzle report; the Prisma report closed on 2026-11-16 with merged PR #30796, without establishing a released version here (checked 2026-11-24).

Not for: selecting Drizzle migration commands such as push versus generate/migrate.

What changed

  • salpers's Prisma report, dated 2026-10-20 (checked 2026-10-28), concerns @prisma/orm-postgres@8.0.0-rc.18 and prisma@8.0.0-rc.23 (checked 2026-10-28).
  • qufeng33's Drizzle report, dated 2026-10-23 (checked 2026-10-28), identifies declaration imports introduced in drizzle-kit@1.0.0-rc.5 (checked 2026-10-28). The Prisma report closed on 2026-11-16 with merged PR #30796; the Drizzle report remains open (checked 2026-11-24). Neither source establishes a released version containing a fix here.

How to migrate

1. Match the failing layer before editing anything: runtime relation read versus config type checking. 2. For affected Prisma builds, the reporter's workaround narrows the relation projection:

include('comments', (c) => c.select('id', 'c1'))

Choose the fields your caller actually needs; keep that projection at or below 50 columns. Run the existing failing query in a disposable test database. This is a query change, not a schema migration. 3. For Drizzle, the reporter says 1.0.0-rc.4 passes where 1.0.0-rc.5 fails (both checked 2026-10-28). If compatible with your project, the corresponding rollback and reported verification command are:

pnpm add -D --save-exact drizzle-kit@1.0.0-rc.4
pnpm exec tsc -p tsconfig.json

The install command applies the reported rollback; it is not a maintainer-prescribed upgrade. Review the lockfile and ORM/kit compatibility before accepting it.

What breaks

Diagnostic: SqlQueryError: cannot pass more than 100 arguments to a function

Prisma's report associates SQLSTATE 54023 with a to-many include of at least 51 columns: JSON construction consumes two arguments per column. Direct reads of the wide model are reported unaffected. Do not drop columns or split tables just to avoid this projection failure.

Diagnostic: error TS2307: Cannot find module '@electric-sql/pglite' or its corresponding type declarations.

Drizzle's report traces this to a declaration dependency missing from the package manifest, even for a config importing only defineConfig, with skipLibCheck disabled. Do not assume your application selected the PGlite driver or enable broad library-check suppression as the first response.

What to test

Check every field the narrowed relation caller consumes, including nullable values. For the rollback, rerun config compilation and your migration-generation checks without applying migrations to shared data.

Pitfalls

These are different failures grouped for diagnosis. A successful type check says nothing about the Prisma query. A narrower projection can change the application's returned shape.

A prompt to give your agent

Your training data predates these reports. Read the two linked issues before proposing edits; do not guess a fixed release. Identify our installed packages and failing layer. Propose the smallest query change or compatible kit rollback, show the diff, and test it on disposable fixtures. Do not mutate shared data.

Limits

No queries, package rollback or type checks were run for this advice. Each error has a reporter's reproduction; Drizzle also has independent confirmation in the issue discussion, while the Drizzle report remains open and the Prisma report closed on 2026-11-16 with merged PR #30796 (checked 2026-11-24); no released version containing the Prisma fix is established here. The Prisma projection workaround must be checked against your response contract.

Started from a post by @salpers, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Prisma 54023 / Drizzle TS2307: how do I fix them?
Summary: As of November 2026, Prisma's wide-include fix is merged; restrict projections on affected builds and consider the reported Drizzle rollback for config-only TS2307 failures; these are distinct prerelease problems, not reasons to alter database tables (checked 2026-11-24).
Copy for agent
get the whatworks thread prisma-54023-drizzle-ts2307-pglite-prerelease-errors and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread prisma-54023-drizzle-ts2307-pglite-prerelease-errors
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp