Skip to content

Conversation

@seaerchin
Copy link
Contributor

@seaerchin seaerchin commented Dec 1, 2025

Problem

  • after upgrading to prisma 7, typecheck/linting fails due to tsc failing to resolve the symlink to the package @prisma/client-runtime-utils.

Solution

refer to this issue:
prisma/prisma#28581 (comment), where the problem exists due to symlinks used by pnpm to link to packages. to avoid this, we have to install the required prisma package at the package's top level as well as patch the files on prisma's end so that the types can be correctly resolved...

we have a runtime lint/typecheck issue where tsc can't resolve the type
properly.

refer to this issue:
prisma/prisma#28581 (comment),
where the problem exists due to symlinks used by pnpm to link to
packages. to avoid this, we have to install the required prisma package
at the package's top level
@vercel
Copy link

vercel bot commented Dec 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
starter-kit Ready Ready Preview Comment Dec 1, 2025 8:41am

@socket-security
Copy link

socket-security bot commented Dec 1, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​prisma/​client-runtime-utils@​7.0.19210077100100

View full report

prisma now uses the prisma config file, which calls into `env` to get
teh database url to generate types.

this requires the env var to be set to work, so we copy the example env
to the env
we need to patch the client so that the missing types are available
@seaerchin seaerchin requested a review from karrui December 1, 2025 08:44
@seaerchin seaerchin marked this pull request as ready for review December 1, 2025 08:45
@seaerchin seaerchin mentioned this pull request Dec 2, 2025
@seaerchin seaerchin merged commit 5a9702e into main Dec 2, 2025
12 checks passed
@seaerchin seaerchin deleted the fix/lint-errors branch December 2, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants