libsql / hrana-client-ts

Hrana client for TypeScript and JavaScript
https://libsql.org/hrana-client-ts/
MIT License
22 stars 7 forks source link

Nextjs 13.5 hrana client error #7

Closed Nnadivictory25 closed 1 year ago

Nnadivictory25 commented 1 year ago

Trying to run my app and I am getting this error

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

This is my db config

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

As you can see I am using turso as my db , this error has been killing me since 2 days now , nothing I have tried seems to work

Edit: Solved this by downgrading to version 0.3.4