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

Docs And Runtime Disagree On Partytown Package Name For `NextScriptWorkers`

Next.js documentation instructs users to install `@qwik.dev/partytown` for the experimental `nextScriptWorkers` feature, but the runtime verification (`verify-partytown-setup.ts`) still requires `@builder.io/partytown`. This causes `next dev` and `next build` to abort with a missing dependency error when users follow the current docs.

highConfidence 95%Next.jsServer Actionsnext buildApp RouterAffected V16.2.1-Canary.42Affected V16.2.3

Origin Analysis

The `verify-partytown-setup.ts` file in Next.js hardcodes the legacy Partytown package `@builder.io/partytown` in both the dependency check and error message, while the official documentation has been updated to recommend `@qwik.dev/partytown`. The runtime does not fall back to the new package name, so users installing only the documented package fail the missing dependency check.
1. Create a Next.js application with `next@16.2.3` (or canary `16.2.1-canary.42`). 2. Enable `experimental.nextScriptWorkers: true` in `next.config.js`. 3. Install the documented package: `npm install @qwik.dev/partytown`. 4. Add a `<Script strategy="worker" />` component anywhere in the app. 5. Run `next dev` or `next build`. 6. Observe the abort with error asking for `@builder.io/partytown` even though the docs said `@qwik.dev/partytown`.

Fixing Code Block

Edge Case Audit

This hotfix bypasses the original `missingDependencyError` utility and throws a plain Error, which may alter Next.js error formatting or exit behavior. For production use, update `missingDependencyError` itself to mention both packages instead of throwing directly. Rollback: restore the original hardcoded `@builder.io/partytown` check if this change causes unexpected issues. Test across development and production builds, and with both package managers and node versions.

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