Error at adding Prisma 6.0.1 to NextJs 15: can-connect-to-database
I was trying to add Prisma to an existing NextJs 15 project:
According to Prisma doc https://www.prisma.io/docs/getting-started/quickstart-sqlite
I added my own
Snippet
model into ./prisma/schema.prisma
Then I ran Prisma migration command:
Then in my terminal I got:
and no new SQL migration file was generated for the migration in the prisma/migrations
Quickstart with TypeScript & SQLite | Prisma Documentation
Get started with Prisma ORM in 5 minutes. You will learn how to send queries to a SQLite database in a plain TypeScript script using Prisma Client.
3 Replies
Hey @PlutoUranus 👋
Does this error happen only with Prisma 6?
Does it work with version 5.22?
Hello Nurul, after downgrading to prisma 5.22, the error remains:
this seems to be happening only for Linux... my environment:
OS: Linux Mint 22 Wilma based on Ubuntu 24.04 noble
Database: using a plain TypeScript project and a local SQLite database file as described in the doc Quick Start page https://www.prisma.io/docs/getting-started/quickstart-sqlite
Node.js version: v22.12.0
Pnpm version: 9.15.0
I made an issue on Prisma Github. There is a bug at Prisma QuickStart migration. See QA discussion: https://github.com/prisma/prisma/discussions/25835
Thank you for creating the GitHub Issue 🙏