Language Server does not respect prisma version in monorepo #1459
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/bug
A reported bug.
topic: validation
Bug description
Hi, I just broke my production application because I trusted what the VSCode Prisma Language Server (from the official extension) suggested: I removed
previewFeatures = ["filteredRelationCount"]
from thegenerator
block of theschema.prisma
file.However, it turns out that I hadn't yet updated the prisma version in the
package.json
files in the separate packages of my monorepo. Therefore, it is acually still needed for that (older) version of prisma.How to reproduce
/packages/app1
...Expected behavior
Maybe the Plugin / Language Server could detect the prisma version from
node_modules
or ask?The current behaviour is a bit confusing ;-)
Prisma information
// some query using filteredRelationCount
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: