Skip to content

fix: dev server errors and dev:prepare warnings - #1493

Merged
larbish merged 3 commits into
mainfrom
chore/fix-dev-prepare-warnings
Nov 19, 2026
Merged

larbish merged 3 commits into
mainfrom
chore/fix-dev-prepare-warnings

Conversation

@larbish

@larbish larbish commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

nr dev:prepare printed several warnings and one error on every run, nr dev crashed, and the first page load in dev triggered a dependency re-optimization and full reload. The root .nuxtrc enabled @nuxtjs/i18n in all three apps without locales, nuxt-llms had no domain in the layer and the playground, the workspace h3: 1.15.11 override forced devframe (loaded by @nuxt/fonts) onto h3 v1 although it needs v2, and six client dependencies were only found by Vite at runtime.

  • Drop the root .nuxtrc: nuxt typecheck layer passes without the i18n module, so the playground no longer needs i18n: false
  • Add an unpublished layer/.nuxtrc with site.url so nuxt-llms has a domain when the layer is prepared alone
  • Set site.url in the playground and mark it "type": "module"
  • Scope the h3 override to h3@1, so only devframe and @devframes/agentic resolve h3 2.0.8
  • Pre-bundle @comark/vue and @comark/vue/plugins/shiki in the layer (used by the always-registered AssistantComark), and @ai-sdk/vue, ai, @vercel/analytics, @vercel/speed-insights in the docs app

Evidence

pnpm run dev:prepare warnings after the change:

 WARN  [NDT_DEP_0005] addCustomTab is deprecated.
◆ Types generated in layer/.nuxt.
 WARN  [NDT_DEP_0005] addCustomTab is deprecated.
◆ Types generated in docs/.nuxt.
 WARN  [NDT_DEP_0005] addCustomTab is deprecated.
◆ Types generated in playground/.nuxt.

nr dev before:

 ERROR  The requested module 'h3' does not provide an export named 'H3'
    import { H3, defineHandler, fromNodeHandler, toNodeHandler } from "h3";

nr dev after:

✔ Vite client built in 428ms
✔ Vite server built in 505ms
[nitro] ✔ Nuxt Nitro server built in 9000ms

First visit to /en in dev before:

✖ TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/components/content/AssistantDemo.vue
Vite discovered new dependencies at runtime:
  ./app/plugins/vercel.client.ts
    @vercel/analytics
    @vercel/speed-insights
  ./app/components/content/AssistantDemo.vue
    @ai-sdk/vue
    ai
  ./../layer/modules/assistant/runtime/components/AssistantComark.ts
    @comark/vue
    @comark/vue/plugins/shiki

After, with the Vite deps cache cleared: no runtime discovery, no reload, no console errors on /en and /en/getting-started/installation.

pnpm run typecheck exits 0, and a type error added on purpose makes it exit 2. pnpm run docs:build completes.

Notes

  • The addCustomTab deprecation comes from @nuxt/icon 2.6.3 (latest) and needs an upstream fix.
  • NUXT_B7002 still lists @nuxtjs/mdc > … entries added by the mdc module.

ELI5

A settings file meant for one folder was being applied to the whole project, which made some tools complain. A version pin meant for older packages was also forcing a newer tool onto a version it can't use, which stopped the dev server from starting. The dev server now also prepares a few libraries up front instead of discovering them mid-page and reloading.

🤖 Generated with Amp, reviewed by @larbish before opening.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docus Ready Ready Preview Nov 19, 2026 9:24pm UTC

@pkg-pr-new

pkg-pr-new Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/create-docus@1493
npm i https://pkg.pr.new/docus@1493

commit: af8b7ac

@docus-bundle-report

docus-bundle-report Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Bundle size

Explore the comparison →

Client 806.5 kB (no change) · Server 1.67 MB $\color{green}\textsf{(-142 B, -0.0}\%\textsf{)}$

No route loads 100 B more or less before it renders.

No prerendered URL's initial load or HTML changes by 100 B or more.

Brotli sizes. Changes under 100 B are left out of the tables. Measured by nuxt-bundle-analyzer for af8b7ac.

@larbish larbish changed the title chore: fix dev:prepare warnings chore: fix dev:prepare warnings and dev h3 error Nov 19, 2026
@larbish larbish changed the title chore: fix dev:prepare warnings and dev h3 error fix: dev server errors and dev:prepare warnings Nov 19, 2026
@larbish
larbish merged commit c020e49 into main Nov 19, 2026
13 checks passed
@larbish
larbish deleted the chore/fix-dev-prepare-warnings branch November 19, 2026 21:29

This branch was successfully deployed

1 active deployment
Preview — af8b7ac7 Deployed Nov 19, 2026 by vercel[bot]
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.

1 participant