docs(contributing): recommend running pnpm build before pnpm dev on fresh clone by sagarithm · Pull Request #98284 · vercel/next.js · GitHub
Skip to content

docs(contributing): recommend running pnpm build before pnpm dev on fresh clone - #98284

Open
sagarithm wants to merge 1 commit into
vercel:canaryfrom
sagarithm:docs/developing-run-build-before-dev
Open

docs(contributing): recommend running pnpm build before pnpm dev on fresh clone#98284
sagarithm wants to merge 1 commit into
vercel:canaryfrom
sagarithm:docs/developing-run-build-before-dev

Conversation

@sagarithm

Copy link
Copy Markdown

What?

Update contributing/core/developing.md under the "Local Development" section to recommend running pnpm build before running pnpm dev on a fresh clone.

Why?

When setting up the Next.js monorepo on a fresh clone, running pnpm dev immediately after pnpm install fails because internal packages and precompiled dependencies (such as @next/polyfill-nomodule, @next/polyfill-module, @next/font, and eslint-config-next) have not yet produced their build output. Running pnpm build once first populates the necessary packages and dist files so that pnpm dev can start watch mode without missing module errors.

Fixes #97506

How?

Added an explicit build step to the local development workflow in contributing/core/developing.md:

1. On a fresh clone, build the packages once before starting the development server:

pnpm build

Copilot AI lite review requested due to automatic review settings September 5, 2026 04:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Docs: Update developing.md to recommend running pnpm build before pnpm dev on a fresh clone

2 participants