We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"prisma": "^6.2.1", "prisma-json-types-generator": "^3.2.2", "@prisma/client": "6.2.1", "@prisma/extension-accelerate": "^1.2.1",
I also tried it without @prisma/extension-accelerate, but same result.
@prisma/extension-accelerate
https://github.com/Mnigos/prisma-json-issue-reproduction
Generated types are not resolved correctly.
prisma-json.ts
declare global { namespace PrismaJson { interface Coordinates { x: number; y: number; z: number; } } }
lib/prisma.ts
import "../prisma-json"; import { PrismaClient } from "@prisma/client"; import { withAccelerate } from "@prisma/extension-accelerate"; const prisma = new PrismaClient().$extends(withAccelerate()); const globalForPrisma = global as unknown as { prisma: typeof prisma }; if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma; export { prisma };
Just open reproduction repository, install dependencies and generate prisma types.
Should not be any.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prerequisites
Versions
I also tried it without
@prisma/extension-accelerate
, but same result.A minimal reproducible example
https://github.com/Mnigos/prisma-json-issue-reproduction
Description
Generated types are not resolved correctly.
prisma-json.ts
lib/prisma.ts
Steps to Reproduce
Just open reproduction repository, install dependencies and generate prisma types.
Expected Behavior
Should not be any.
The text was updated successfully, but these errors were encountered: