Skip to content

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

@RicSala

Description

@RicSala

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions