tursodatabase / tursodatabase/libsql-client-ts

Issue when deploying on a server

Open
#295 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I am facing the following issue when deploying in production. The app is developed using Next.js
Tried using both the latest and next version.

 ⨯ [Error: Cannot find module '@libsql/linux-x64-musl'
Require stack:
- /app/node_modules/.pnpm/libsql@0.4.7/node_modules/libsql/index.js] {
  code: 'MODULE_NOT_FOUND',
  requireStack: [Array]
}

My package manager is pnpm and and setting public-hoist-pattern[]=*@libsql* did not help.

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 with the reported production deployment and the require path in node_modules/.pnpm/libsql@0.4.7/node_modules/libsql/index.js, using pnpm and Next.js. Reproduce the missing @libsql/linux-x64-musl module error and determine the deployment configuration or package resolution involved; done means the production app starts without this module-not-found failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
databases, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.