tursodatabase / tursodatabase/libsql-client-ts

Module parse failed: Export '_queueMicrotask' is not defined

Open
#106 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
576
Forks
69
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in a Next.js 13.5 app using the shown @libsql/client setup, then inspect @libsql/hrana-client/lib-esm/queue_microtask.d.ts and the linked hrana-client commit. Done means the reported module parse error no longer occurs with this setup; validate by building the minimal example.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.