nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.55k stars 117 forks source link

Getting "NodeAPIQueryEngineLibrary.dmmf is not a function" when npm run db:generate #209

Open RicSala opened 1 month ago

RicSala commented 1 month ago

Config File { "hasSrc": true, "packages": [ "shadcn-ui", "prisma", "next-auth", "stripe" ], "preferredPackageManager": "npm", "t3": false, "alias": "@", "analytics": true, "rootPath": "src/", "componentLib": "shadcn-ui", "orm": "prisma", "driver": "sqlite", "auth": "next-auth" }

Describe the bug After runnin kirimase init, when I run "npm run db:generate" I get the following error: "

kirimase@0.1.0 db:generate prisma generate

Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Error: Get DMMF: NodeAPIQueryEngineLibrary.dmmf is not a function "

To Reproduce Steps to reproduce the behavior:

  1. Create a nextjs project and run kirimase init
  2. run "npm run db:generate"
  3. See error

Expected behavior Being able to work with the generated scaffold :)

Screenshots

rocnail36 commented 1 month ago

could you solve the problem ?

rocnail36 commented 1 month ago

i have the same error

a7993n commented 1 week ago

The used version of Prisma is affected, remove prisma from the package.json and install it using "npm i prisma", It should fix it. don't forget to remove also your node_modules and run "npm i" again.