You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: fix gaps found moving the module starter to v2 - #860
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.
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📚 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:
so now we run
nuxt-module-build preparebeforenuxt dev playgroundin every example. it also links the playground withlink:..for older versions of nuxt/cli that rename the package.we also add
allowBuildsto the pnpm example, switch the quick start to pnpm, and addtsconfig.test.jsonto the project structure page. plus a few smaller bits.Note
the quick start assumes the v2 starter template, which isn't merged yet.