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

Using PNPM is showing Error: Generator "prisma-kysely" failed: #115

Open
mohrazzak opened this issue Nov 12, 2024 · 1 comment
Open

Using PNPM is showing Error: Generator "prisma-kysely" failed: #115

mohrazzak opened this issue Nov 12, 2024 · 1 comment

Comments

@mohrazzak
Copy link

Pnpm command: (NOT WORKING)
pnpm dlx prisma migrate dev
...(migrating works good)
Running generate... (Use --skip-generate to skip the generators)
Error: Generator "prisma-kysely" failed:

/bin/sh: 1: prisma-kysely: not found

npm command: (WORKING)
npx prisma migrate dev
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "api", schema "public" at "localhost:5432"

Already in sync, no schema change or pending migration was found.

✔ Generated Kysely types (1.8.0) to ./src/db in 58ms

@leobaldoneto
Copy link

leobaldoneto commented Dec 3, 2024

Same here, but if you add the command as an script in package.json, it works.

Edit: The problem only occuring with the generator script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants