tursodatabase / tursodatabase/libsql

Unable to run project getting the following error Error: Cannot find module '@libsql/darwin-x64'

Open
#385 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

Unable to run the project getting the following error everytime trying to run the project.

nuxt3 + drizzle + turso

No config path provided, using default path
Reading config file '<path>/drizzle.config.ts'
node:internal/modules/cjs/loader:1048
  const err = new Error(message);
              ^

Error: Cannot find module '@libsql/darwin-x64'
Require stack:
- <path>/node_modules/.pnpm/libsql@0.1.8/node_modules/libsql/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (<path>/node_modules/.pnpm/libsql@0.1.8/node_modules/libsql/index.js:26:24)
    at Module._compile (node:internal/modules/cjs/loader:1233:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
    at newLoader (<path>/node_modules/.pnpm/drizzle-kit@0.19.13/node_modules/drizzle-kit/index.cjs:8627:13)
    at Object.newLoader [as .js] (<path>/node_modules/.pnpm/drizzle-kit@0.19.13/node_modules/drizzle-kit/index.cjs:8627:13)
    at Module.load (node:internal/modules/cjs/loader:1091:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '<path>/node_modules/.pnpm/libsql@0.1.8/node_modules/libsql/index.js'
  ]
}

Node.js v20.5.1

getting the following while trying to use drizzle + turso.

Previously worked on multiple projects with the same combination this is a new project getting the above error.

Let me know if anything is needed.

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

Start by reproducing the failure while using the reported Nuxt 3, Drizzle and Turso setup, then inspect drizzle.config.ts and libsql/index.js in the libsql package. Check how the @libsql/darwin-x64 dependency is selected or installed on Node.js 20. Done means the project command runs without the MODULE_NOT_FOUND error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, nuxtjs
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.