saasykits / next-lucia-auth

This is a Next.js T3 project with authentication implemented using Lucia.
https://next-lucia.vercel.app
MIT License
490 stars 60 forks source link

Warning: You need to pass an instance of Client #38

Closed iamtouha closed 9 months ago

iamtouha commented 9 months ago

Describe the bug

Warning: You need to pass an instance of Client:

import { Client } from "@planetscale/database";

const client = new Client({
  host: process.env["DATABASE_HOST"],
  username: process.env["DATABASE_USERNAME"],
  password: process.env["DATABASE_PASSWORD"],
});

const db = drizzle(client);

Starting from version 0.30.0, you will encounter an error if you attempt to use anything other than a Client instance.
Please make the necessary changes now to prevent any runtime errors in the future

To Reproduce Steps to reproduce the behavior:

  1. Run 'pnpm dev'
  2. See logs on terminal