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

Turbopack Panics On ** Operator In Async Functions Due To Stale Browserslist-Rs Data Causing All SWC Compat Transforms To Be Enabled

Turbopack silently drops unknown browser versions from browserslist-rs 0.19.0, interprets the resulting empty distribution list as 'any target', enables every SWC compat transform, and panics on the ES2015 generator transform's unimplemented right-associative binary expression (**) in async functions.

criticalConfidence 95%Next.jsServer ActionsHydrationApp RouterAffected V16.1.6Affected V16.2.1-Canary.13

Origin Analysis

Version mismatch between JS-side caniuse-lite (knows Chrome 142+, Firefox 148+, etc.) and Rust-side browserslist-rs (only knows up to Chrome 141/Firefox 130). Turbopack re-resolves browserslist in Rust with ignore_unknown_versions: true, drops unknown versions, then passes the empty Versions to SWC as Targets::Versions instead of marking unknown_version. This bypasses SWC PR #11457 and causes is_any_target() to return true, enabling async-to-generator and ES2015 generator transforms, which panic on **.
1. Clone https://github.com/mhdsdt/turbopack-bigint-exponentiation-repro 2. Run npm install --force 3. Run npm run dev (next dev --turbopack) 4. Open http://localhost:3000, observe 500 error with Rust panic: 'not yet implemented: right-associative binary expression'

Fixing Code Block

Edge Case Audit

This hotfix may skip transpilation for genuinely old browsers if the browserslist query is intentionally empty or browserslist-rs data is incomplete. If any project relies on empty query meaning 'all targets', they might receive untranspiled code for ancient browsers. Rollback suggestion: revert this change and instead update browserslist-rs to a version matching caniuse-lite, or pass the original browserslist query string to SWC to use its own resolution. Concurrent builds are unaffected, but upgrading browserslist-rs could change transform behavior subtly; test with representative browserslist configs before deploying.

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