Skip to content

Rolldown RSC build fails with "Plugin driver is already dropped" #7374

@aartisonigra

Description

@aartisonigra

Which project does this relate to?

Router

Describe the bug

Description

A regression occurs during the Rolldown RSC production build where this.resolve() throws:

Plugin driver is already dropped

inside:

tanstack-start-core::server-fn:rsc

Affected Versions

  • @tanstack/react-start@1.167.63
  • @tanstack/react-start@1.167.64

Not Affected

  • @tanstack/react-start@1.167.57

Reproduction

  1. Create a TanStack Start app
  2. Enable Rolldown RSC production build
  3. Run:
pnpm build

Actual Result

Build crashes with:

Plugin driver is already dropped

Expected Result

The production build should complete successfully without crashing.

Complete minimal reproducer

https://github.com/aartisonigra/router

Steps to Reproduce the Bug

  1. Clone the reproduction repository
git clone https://github.com/aartisonigra/router.git
  1. Install dependencies
pnpm install
  1. Run the production build
pnpm build
  1. Observe the build failure during the Rolldown RSC production build with:
Plugin driver is already dropped

Expected behavior

As a user, I expected the Rolldown RSC production build to complete successfully without crashing, but I am seeing the following error during pnpm build:

Plugin driver is already dropped

Screenshots or Videos

No response

Platform

  • Router / Start Version: [e.g. 1.121.0]
  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Browser Version: [e.g. 91.1]
  • Bundler: [e.g. vite]
  • Bundler Version: [e.g. 7.0.0]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions