smilebasti
WWasp
•Created by smilebasti on 2/28/2025 in #đŸ™‹questions
Fresh install - Error: There is no datasource in the schema
Hi,
i just came back to try Wasp with v16 again.
The Problem: wasp db migrate-dev gives my the Error in the section Setting up database... : Error: There is no datasource in the schema.
You don't have any datasource defined in your schema.prisma.
I started with wasp new after installing wasp on the system. Selected 3 for saas template. With wasp db start the database is running in a seperate terminal: ready for connections. And then in the app directory wasp db migrate-dev with the error above.
I also tried wasp new with 2 selected for todo-ts. Then tried wasp db start with: using sqlite, no database needed. Then i run wasp db migrate-dev and got the same error.
I checked the schema.prisma file with the saas template and it has at the top:
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
I have copied the .env.server.example to .env.server but have not changed anything in the file.
I am running Ubuntu 24.10 Desktop and Node 22 (tested also 20 and 18 with the same result). Wasp version 0.16.2. Docker Engine 27.5.1.
Is there anything i can check to help any further? Is anybody able to replicate this issue?
Any help would be greatly appreciated. Thanks ahead
23 replies
WWasp
•Created by smilebasti on 3/16/2024 in #đŸ™‹questions
action calling action not working. Bad programming or issue?

43 replies