Skip to content

fix: pnpm monorepo issues with prismaclient runtime utils#28735

Merged
FGoessler merged 2 commits intomainfrom
fix/tml-1630-pnpm-monorepo-issues-with-prismaclient-runtime-utils
Nov 27, 2025
Merged

fix: pnpm monorepo issues with prismaclient runtime utils#28735
FGoessler merged 2 commits intomainfrom
fix/tml-1630-pnpm-monorepo-issues-with-prismaclient-runtime-utils

Conversation

@FGoessler
Copy link
Copy Markdown
Contributor

This PR resolves the TS2742 issues for DbNull, JsonNull and AnyNull that occur in certain monorepo setups as reported in #28581.

Example error:

TS2742: The inferred type of 'DbNull' cannot be named without a reference to '.pnpm/@prisma+client-runtime-utils@7.0.0/node_modules/@prisma/client-runtime-utils'. This is likely not portable. A type annotation is necessary.

It fixes those by exposing the relevant class types on the @prisma/client/runtime/client entrypoint.
This PR also includes a new E2E test to cover this issue.

@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.23 KB (0%)
packages/client/runtime/index-browser.d.ts 3.28 KB (0%)
packages/cli/build/index.js 2.51 MB (0%)
packages/client/prisma-client-0.0.0.tgz 10.22 MB (+0.01% 🔺)
packages/cli/prisma-0.0.0.tgz 6.71 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 804.73 KB (-0.01% 🔽)
packages/bundle-size/da-workers-neon/output.tgz 858.48 KB (+0.01% 🔺)
packages/bundle-size/da-workers-pg/output.tgz 851.33 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 804.09 KB (-0.01% 🔽)
packages/bundle-size/da-workers-d1/output.tgz 787.63 KB (0%)

@FGoessler FGoessler added this to the 7.1.0 milestone Nov 26, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 27, 2025
@FGoessler FGoessler merged commit e2664e1 into main Nov 27, 2025
240 checks passed
@FGoessler FGoessler deleted the fix/tml-1630-pnpm-monorepo-issues-with-prismaclient-runtime-utils branch November 27, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants