tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL
https://docs.turso.tech/sdk/ts/quickstart
MIT License
218 stars 31 forks source link

Module parse failed: Export '_queueMicrotask' is not defined #106

Open penberg opened 11 months ago

penberg commented 11 months ago

The following code:

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 }; |

which suggests the fix https://github.com/libsql/hrana-client-ts/commit/fa55f2e79f62055f8ede59047e11e36d7eac0ae1 doesn't maybe work.

penberg commented 11 months ago

0.2.0 doesn't seem to have this problem according to the bug reporter.

penberg commented 11 months ago

0.3.4 also seems to work.