-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
We've stumbled upon the following error when we've introduced "prisma-extension-soft-delete": "1.0.0",
in our app.
I'm raising the issue in this repo since the error is located in the prisma-extension-nested-operations
code.
Unhandled Runtime Error
Error: Prisma DMMF not found, please generate Prisma client using `npx prisma generate`
Call Stack
eval
../node_modules/prisma-extension-nested-operations/dist/esm/lib/utils/relations.js (3:10)
(app-pages-browser)/../../node_modules/prisma-extension-nested-operations/dist/esm/lib/utils/relations.js
file:///Users/kachar/Projects/my-app/apps/web/.next/static/chunks/app/(auth)/(public)/sign-in/page.js (2105:1)
options.factory
file:///Users/kachar/Projects/my-app/apps/web/.next/static/chunks/webpack.js (716:31)
__webpack_require__
file:///Users/kachar/Projects/my-app/apps/web/.next/static/chunks/webpack.js (37:33)
fn
file:///Users/kachar/Projects/my-app/apps/web/.next/static/chunks/webpack.js (371:21)
eval
(app-pages-browser)/../../node_modules/prisma-extension-nested-operations/dist/esm/lib/utils/extractNestedOperations.js (13:68)
(app-pages-browser)/../../node_modules/prisma-extension-nested-operations/dist/esm/lib/utils/extractNestedOperations.js
file:///Users/kachar/Projects/my-app/apps/web/.next/static/chunks/app/(auth)/(public)/sign-in/page.js (2072:1)
We're using turborepo and the lib is loaded from a sub-package located at packages/db/schema.prisma
However the main app is unable to load the dependencies.
"next": "^14.1.0",
"next-auth": "^4.24.6",
"dependencies": {
"@prisma/client": "5.10.2",
"@t3-oss/env-nextjs": "^0.9.2",
"prisma-extension-soft-delete": "1.0.0",
"zod": "^3.22.4"
},
"devDependencies": {
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"prisma": "5.10.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"zod-prisma-types": "3.1.6"
},
generator client {
provider = "prisma-client-js"
previewFeatures = ["postgresqlExtensions"]
extensions = [pgcrypto, citext, uuidOssp(map: "uuid-ossp")]
}
generator zod {
provider = "zod-prisma-types"
createInputTypes = false
createOptionalDefaultValuesTypes = true
addInputTypeValidation = true
}
The prisma schema is generated, all migrations are applied.
wallforfry, rpaterson, pnewhook, mohamedamara1, CHC383 and 5 more
Metadata
Metadata
Assignees
Labels
No labels