Prisma debugging
̣> If you have no idea what you are doing, check the full guide on Prisma first : Prisma 101 : X PostgreSQL
Failed to load config file "/home/ron/Documents/phantom" as a TypeScript/JavaScript module. Error: PrismaConfigEnvError: Missing required environment variable: DATABASE_URL
First check that you actually have a .env file at the root of your project (parent folder of prisma/, and it contains what you think it contains :
ls -la .env
npx prisma migrate dev --name init
If everything looks fine, check if you have a prisma.config.ts:
ls -la prisma.config.ts
If you didn't create this file yet it exists, delete it so Prisma behaves by default loading DATABASE_URL from .env.
Member discussion