drizzle-team / drizzle-team/drizzle-orm

[BUG]: Error: The specified module could not be found. `\node_modules\@libsql\win32-x64-msvc\index.node`

Open
#3,205 4 comments 2 reactions 0 assignees View on GitHub
bug db/sqlite driver/libsql priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

^0.35.3

### What version of `drizzle-kit` are you using?

^0.26.2

### Describe the Bug

I got this error only on the Windows machine I've tried it on **Linux** (Ubuntu) in the **WSL** It works fine,
except for **Windows**, I think because it's missing the compiled binaries from `@libsql\win32-x64-msvc` I tried installing it manually and adding it into production dependencies using both `npm` and `pnpm` but no chance *(i rolled out on all the boring processes deleting pkg manager cache, etc...)

```json
{
"dependencies": {
"@libsql/client": "^0.14.0",
"@libsql/win32-x64-msvc": "^0.4.6",
"drizzle-zod": "^0.5.1",
"drizzle-graphql": "^0.8.5",
}
}
```

### Here is my db file:

For database: I'm using SQLite (Turso) from `'drizzle-orm/sqlite-core'`;

```ts
import { drizzle } from 'drizzle-orm/libsql';
import { createClient } from '@libsql/client';
import { schema } from '@/database/schema';

export const tursoCredentials = {
url: process.env.TURSO_DB_SCHEMA_URL!,
authToken: process.env.TURSO_DB_SCHEMA_AUTH_TOKEN
};

const client = createClient(tursoCredentials);

export const DB = drizzle({ client, schema, casing: 'camelCase' });
```

#### Screenshot might help:
![image](https://github.com/user-attachments/assets/0377b2ad-2165-4227-ba47-4a745e303ca8)

### Expected behavior

![image](https://github.com/user-attachments/assets/8be10972-b2aa-4d4b-b1c2-67ed5f77b341)

### Environment & setup

### My Machine
- OS: Windows 11
- nodejs: v20.17.0
- npm: 10.9.0
- pnpm: 9.12.2

### My stack:
- NextJS *(15) and then tried 14
- Turso (libsql)
- Drizzle ORM
- GraphQL

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.