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

Module parse failed: Export '_queueMicrotask' is not defined

Open penberg opened this issue 2 years ago • 2 comments

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/@[email protected][email protected]/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 avatar Sep 26 '23 11:09 penberg

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

penberg avatar Sep 26 '23 11:09 penberg

0.3.4 also seems to work.

penberg avatar Sep 26 '23 11:09 penberg