AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Create-Next-App Omits Packages Field In Pnpm-Workspace.Yaml For Pnpm 10.0-10.4, Breaking Pnpm Install

When using pnpm 10.0.0 through 10.4.1 with create-next-app, the generated pnpm-workspace.yaml lacks the required packages field, causing pnpm install to fail with 'packages field missing or empty'. The code currently omits packages for all pnpm 10.x, but pnpm only supports a missing packages field from version 10.5.0 onward.

highConfidence 90%Next.jsReact Server ComponentsTurbopackAffected V16.2.1

Origin Analysis

templates/index.ts checks pnpmVersion.startsWith('10') and writes an empty workspace file, but pnpm 10.0-10.4 still requires the packages field; only pnpm >=10.5.0 treats it as optional.
1. Install pnpm 10.4.1: pnpm self-update 10.4; 2. Run pnpm create next-app@latest .; 3. Run pnpm i; 4. Observe error 'ERROR packages field missing or empty'.

Fixing Code Block

Edge Case Audit

Using manual version splitting may mis-handle prerelease versions such as 10.5.0-beta.1; prefer semver.gte where available. Existing projects already created with an empty pnpm-workspace.yaml will still fail until the file is manually updated or the project is re-created. Rollback: revert to the previous condition if pnpm 10.5+ unexpectedly requires packages in a future release.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state