Skip to content

fix: support nuxt typecheck in apps extending docus#1300

Merged
larbish merged 7 commits intonuxt-content:mainfrom
onmax:fix/typecheck-consumer-app
Mar 11, 2026
Merged

fix: support nuxt typecheck in apps extending docus#1300
larbish merged 7 commits intonuxt-content:mainfrom
onmax:fix/typecheck-consumer-app

Conversation

@onmax
Copy link
Contributor

@onmax onmax commented Mar 10, 2026

Closes #1299

Summary

This fixes nuxt typecheck for consumer apps that use extends: ['docus'] and enable the same Docus feature surface exercised by a real app.

The verified scope is still narrow:

  • package-internal type cleanup only
  • no runtime behavior changes
  • no attempt to solve broader Docus layer/embed issues

StackBlitz

Link Expected
Bug docus-1299 nuxt typecheck fails
Fix docus-1299-fix nuxt typecheck succeeds

Both repros now mirror the packaged-consumer failure more closely:

  • they extend Docus
  • define a small assistant app config
  • enable the same Nuxt/Docus feature surface that exposed the remaining consumer-package errors

CLI Reproduction

git clone --depth 1 --filter=blob:none --sparse https://github.com/onmax/repros.git
cd repros && git sparse-checkout set docus-1299
cd docus-1299 && pnpm i && pnpm typecheck

Verify Fix

cd .. && git sparse-checkout set docus-1299 docus-1299-fix
cd docus-1299-fix && pnpm i && pnpm typecheck

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

Real App Verification

I also verified this patch against the Nimiq developer center by consuming the forked package branch directly, with no local pnpm patch entry:

  • dependency: github:onmax/docus#dist/typecheck-consumer-app
  • pnpm install succeeds
  • pnpm typecheck succeeds
  • pnpm build succeeds

Related

  • #1282 shows separate route/injection issues when embedding Docus under /docs
  • #1290 shows separate dependency/setup friction around layer usage

This PR only addresses the consumer nuxt typecheck failures reproduced in #1299.

@vercel
Copy link

vercel bot commented Mar 10, 2026

@onmax is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@onmax onmax marked this pull request as draft March 10, 2026 08:31
@onmax onmax marked this pull request as ready for review March 10, 2026 09:48
Copy link
Collaborator

@larbish larbish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏

@larbish larbish merged commit 7032533 into nuxt-content:main Mar 11, 2026
1 of 2 checks passed
@onmax onmax deleted the fix/typecheck-consumer-app branch March 11, 2026 12:51
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 typecheck fails in a minimal app extending docus

2 participants