Skip to content
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

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

Open
RicSala opened this issue Aug 5, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@RicSala
Copy link

RicSala commented Aug 5, 2024

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:
"

[email protected] 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

@RicSala RicSala added the bug Something isn't working label Aug 5, 2024
@rocnail36
Copy link

could you solve the problem ?

@rocnail36
Copy link

i have the same error

@a7993n
Copy link

a7993n commented Sep 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants