New issue
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
Not compatible with Prisma v5 #11
Comments
Actually, using a setup like this seems to work, but adding it to all models is causing issues. import { PrismaClient } from "@prisma/client"
import { paginate } from "prisma-extension-pagination"
const prismaClient = new PrismaClient()
const prisma = prismaClient.$extends({
model: {
book: {
paginate
}
}
})
export default prisma |
Also going to hijack my own issue to ask if it's possible to add config globally. For example, I want to add |
Hi, it looks like a problem with module resolution. Can you provide your tsconfig?
No, this is not implemented yet. |
Sure. Here you are
|
@jaaneh Can you test version 0.4.1? Should be fixed now |
Unfortunately looks like it's still an issue. I'm extending all to get around it for now. import { PrismaClient } from "@prisma/client"
import { paginate } from "prisma-extension-pagination"
const prisma = new PrismaClient().$extends({
model: {
$allModels: {
paginate
}
}
}) |
@jaaneh Can you test 0.4.2? If still not working please check this minimal reproducible example, works for me |
0.4.2 works! 🎉 Thank you for fixing so quickly. |
Hey, trying to get this working with v5 and saw #10 was merged. However, it doesn't seem to be functional with this still.
Prisma v4.16.2 works fine with no errors.
Prisma v5.0.0:
Here's my prisma setup
The text was updated successfully, but these errors were encountered: