I've tried so many solutions I can't even recall half of them. I've spent about three hours trying to get everything up and running and I just can't get rid of this error (attached)
Here's my related files, if anyone can help solve this I'd be forever grateful.
import { Pool, neonConfig } from "@neondatabase/serverless";import { DATABASE_URL } from "$env/static/private";import { PrismaClient } from "@prisma/client";import { PrismaNeon } from "@prisma/adapter-neon";import ws from "ws";neonConfig.webSocketConstructor = ws;const pool = new Pool({ connectionString: DATABASE_URL });const adapter = new PrismaNeon(pool);const prisma = new PrismaClient({ adapter });export default prisma;
import { Pool, neonConfig } from "@neondatabase/serverless";import { DATABASE_URL } from "$env/static/private";import { PrismaClient } from "@prisma/client";import { PrismaNeon } from "@prisma/adapter-neon";import ws from "ws";neonConfig.webSocketConstructor = ws;const pool = new Pool({ connectionString: DATABASE_URL });const adapter = new PrismaNeon(pool);const prisma = new PrismaClient({ adapter });export default prisma;