Skip to content

docs: fix gaps found moving the module starter to v2 - #860

Merged
danielroe merged 6 commits into
mainfrom
docs/findings
Nov 22, 2026
Merged

danielroe merged 6 commits into
mainfrom
docs/findings

Conversation

@danielroe

Copy link
Copy Markdown
Member

📚 Description

I moved the module starter to v2 in nuxt/starter#2222 - trying to follow these docs exactly, and hit a few places where they produced a module that didn't work. the first was running the dev script on a fresh checkout:

[TSCONFIG_ERROR] Failed to load tsconfig '.nuxt/tsconfig.node.json': Tsconfig not found

so now we run nuxt-module-build prepare before nuxt dev playground in every example. it also links the playground with link:.. for older versions of nuxt/cli that rename the package.

we also add allowBuilds to the pnpm example, switch the quick start to pnpm, and add tsconfig.test.json to the project structure page. plus a few smaller bits.

Note

the quick start assumes the v2 starter template, which isn't merged yet.

@pkg-pr-new

pkg-pr-new Bot commented Nov 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/module-builder/@nuxt/module-builder@860

commit: 3114861

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The quick start now uses pnpm to create and run a module. The playground guidance covers package-manager-specific installation and prepares the module before starting Nuxt. TypeScript documentation adds a project reference for tests and configuration files and clarifies module and playground type-checking commands. The changes also update release, upgrade, and example fixture guidance.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Severity of issue fixed: Medium

Merge Risk: Low · up to 31148

The documentation now describes a pnpm-based v2 starter workflow that depends on a starter template the author says is not yet merged. Until the starter is published, new users following the quick start may get the earlier template and a mismatched dev script. Merge or publish the docs only after the starter update is available.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "docs: fix gaps found moving the module starter to v2" matches the changeset. The PR updates several documentation files to fix gaps found while moving the starter to v2, including the dev s…
Description check Passed The description explains the motivation (a dev script failure on a fresh checkout with a missing .nuxt/tsconfig.node.json), the fix (running nuxt-module-build prepare before nuxt dev playground), the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs: fix gaps found moving the module starter to v2" matches the changeset. The PR updates several documentation files to fix gaps found while moving the starter to v2, including the dev script prepare step, pnpm-based quick start, and tsconfig.test.json references. It is specific and conventionally formatted.

Full details: Description check

Explanation

The description explains the motivation (a dev script failure on a fresh checkout with a missing .nuxt/tsconfig.node.json), the fix (running nuxt-module-build prepare before nuxt dev playground), the link:.. playground change, the allowBuilds addition to the pnpm example, the quick start switch to pnpm, and the tsconfig.test.json addition. These match the changed documentation files.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 74ad528e-f3d7-45a2-97c6-03db33e8f75e
Commits

Reviewing files that changed from the base of the PR and between 08f02c5 and 3114861.

Files selected for processing: 9

  • README.md
  • docs/1.project-structure.md
  • docs/3.develop-and-publish.md
  • docs/5.typescript.md
  • docs/index.md
  • docs/upgrade-v2.md
  • example/README.md
  • example/package.json
  • example/src/module.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@danielroe
danielroe added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 8ca1b63 Nov 22, 2026
17 of 18 checks passed
@danielroe
danielroe deleted the docs/findings branch November 22, 2026 21:41
This was referenced Nov 22, 2026
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