import { drizzle } from 'drizzle-orm/libsql';
import { createClient } from '@libsql/client';
const client = createClient({
url: process.env.TURSO_DB_URL as string,
authToken: process.env.TURSO_DB_AUTH as string,
});
export const db = drizzle(client);
Fails with Nextjs 13.5 app as follows:
./node_modules/.pnpm/@libsql+hrana-client@0.5.5_encoding@0.1.13/node_modules/@libsql/hrana-client/lib-esm/queue_microtask.d.ts Module parse failed: Export '_queueMicrotask' is not defined (1:9) > export { _queueMicrotask as queueMicrotask }; |
The following code:
Fails with Nextjs 13.5 app as follows:
which suggests the fix https://github.com/libsql/hrana-client-ts/commit/fa55f2e79f62055f8ede59047e11e36d7eac0ae1 doesn't maybe work.