Skip to content

Comments

fix(db): resolve @nuxthub/db from rootDir for pnpm workspaces#828

Merged
atinux merged 1 commit intomainfrom
fix/db-pnpm-workspaces
Feb 11, 2026
Merged

fix(db): resolve @nuxthub/db from rootDir for pnpm workspaces#828
atinux merged 1 commit intomainfrom
fix/db-pnpm-workspaces

Conversation

@onmax
Copy link
Contributor

@onmax onmax commented Feb 10, 2026

Closes #826

In pnpm workspaces, @nuxthub/db can't be resolved when launching Drizzle Studio because the alias-based import() resolves from the pnpm store path instead of the project's rootDir where the package is generated.

Uses absolute path resolution from rootDir + existsSync guard with actionable error message.

StackBlitz

Link Expected
Bug nuxthub-826 Cannot find module '@nuxthub/db'
Fix nuxthub-826-fix ✅ Drizzle Studio launches

CLI Reproduction

git clone --depth 1 --filter=blob:none --sparse https://github.com/onmax/repros.git
cd repros && git sparse-checkout set nuxthub-826
cd nuxthub-826 && pnpm i && pnpm --filter web dev

Verify fix

git sparse-checkout add nuxthub-826-fix
cd ../nuxthub-826-fix && pnpm i && pnpm --filter web dev

The -fix folder uses pnpm patch to apply the fix locally.

Related

@vercel
Copy link

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nuxthub Ready Ready Preview Feb 10, 2026 4:56pm

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
playground e10df18 Commit Preview URL

Branch Preview URL
Feb 10 2026, 04:56 PM

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 10, 2026

npm i https://pkg.pr.new/@nuxthub/core@828

commit: e10df18

@atinux atinux merged commit d3226ed into main Feb 11, 2026
10 checks passed
@atinux atinux deleted the fix/db-pnpm-workspaces branch February 11, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm workspaces error: Cannot find module '@nuxthub/db'

2 participants