Skip to content

fix: auto-install @nuxt/ui for devtools#67

Merged
onmax merged 1 commit intomainfrom
fix/devtools-nuxt-ui
Jan 19, 2026
Merged

fix: auto-install @nuxt/ui for devtools#67
onmax merged 1 commit intomainfrom
fix/devtools-nuxt-ui

Conversation

@onmax
Copy link
Copy Markdown
Collaborator

@onmax onmax commented Jan 14, 2026

Problem

Devtools tab failed to load when host app didn't have @nuxt/ui installed (#66). Components like UTable, UTabs, UBadge weren't found.

Solution

Auto-install @nuxt/ui in dev mode if not already present. Production builds unaffected.

Research

The devtools page uses Nuxt UI components, but they're only auto-imported when @nuxt/ui is installed. Options considered:

  1. @nuxt/devtools-ui-kit - Official N-prefixed components, but no Table component
  2. Separate devtools client - How Nuxt UI v3 does it (complex, separate build with sirv)
  3. installModule - Pattern from nuxt/ui#3679 to programmatically install modules

Went with option 3 using hasNuxtModule + installModule from @nuxt/kit (docs).

Closes #66

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Jan 14, 2026

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

Project Deployment Review Updated (UTC)
nuxt-better-auth-docs Ready Ready Preview, Comment Jan 14, 2026 6:25am

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

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

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
nuxt-better-auth-demo e2e8b19 Jan 14 2026, 06:25 AM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jan 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/onmax/nuxt-better-auth/@onmax/nuxt-better-auth@67

commit: e2e8b19

@onmax onmax merged commit d109eec into main Jan 19, 2026
6 checks passed
@onmax onmax deleted the fix/devtools-nuxt-ui branch January 19, 2026 16:25
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.

Nuxt-Better-Auth Devtool tab not working

1 participant