no datasource in schema and schema.prisma empty in .wasp
Prisma✅SolvedGeneral Wasp
hi, I've been trying to get wasp to compile with just fresh starter projects or the saas template. However, for the last three days I have been running into the same error and it's driving me insane! I have tried: different version of wasp, of node; fresh installs of wasp and running wasp new; sqlite and postgresql. I have used wasp before and deployed using fly.io especially using version 0.16.0 and wanted to check out 0.18.0 before doing a migration.
once again after starting the db by running "wasp start db" it runs using postgresql
next when I run "wasp db migrate-dev" or "wasp compile" I get the following output:
any help is appreciated!
"""
--- Compiling wasp project... --------------------------------------------------
--- Setting up database... -----------------------------------------------------
[ Db !] Error: There is no datasource in the schema. [ Db !] [ Db !] [ Db ] Environment variables loaded from .env [ Db ] Prisma schema loaded from ../db/schema.prisma [ Db !] Error: [ Db !] You don't have any datasource defined in your schema.prisma. [ Db !] You can define a datasource like this: [ Db !] [ Db !] datasource db { [ Db !] provider = "postgresql" [ Db !] url = env("DB_URL") [ Db !] } [ Db !] [ Db !] More information in our documentation: [ Db !] https://pris.ly/d/prisma-schema [ Db !]
--- [Error] Your wasp project failed to compile: -------------------------------
- Prisma client generation failed with exit code: 1
--- [Error] Compilation of wasp project failed: --------------------------------