libsql-client-ts icon indicating copy to clipboard operation
libsql-client-ts copied to clipboard

NextJS + Turso + Drizzle issue

Open Djboy08 opened this issue 1 year ago • 3 comments

Referenced here from another user: https://github.com/tursodatabase/libsql/issues/1276

I get the same error and using libsql client. I tried downgrading multiple times of libsql and it was always getting the same error.

I am using nextjs Version 14.0.3 and have also tried 14.0.2

Djboy08 avatar Apr 09 '24 15:04 Djboy08

Hello, I got the same error (on a monorepo setup), here's how I fixed it https://github.com/tursodatabase/libsql/issues/1276#issuecomment-2065694434

joshxfi avatar Apr 19 '24 03:04 joshxfi

Hard to undestand why a "minor" update caused this breaking change

GustavoOS avatar May 31 '24 21:05 GustavoOS

A solution from #184:

import {} from "@libsql/client/web"

crtnx avatar Jun 11 '24 14:06 crtnx