Skip to content

nitro-nightly build crashes Start app in Bun monorepo #3915

@slovakian

Description

@slovakian

Environment

Runtime: bun (1.3.5; latest)
Nitro: nitro-nightly (3.0.1-20260102-143448-301604f8)

Reproduction

https://github.com/slovakian/nitro-nightly-mono-repro/tree/main

Describe the bug

The nightly build works causes a TanStack Start app scaffolded using the official CLI to fail, but only when uses in a Turbo monorepo (Bun in this case).

Additional context

There are two apps in the repro: nitro-nightly and web. web uses the alpha build and the dev server runs fine. nitro-nightly uses the nightly build and the dev server crashes, but only within the monorepo. Outside of the monorepo, the dev server executes without issue.

Logs

error when starting dev server:
Error: Node env worker should be initialized before sending messages.
    at NodeEnvRunner.sendMessage (.../nitro-nightly/dist/_dev.mjs:142:28)
    at new FetchableDevEnvironment (.../nitro-nightly/dist/_build/vite.plugin.mjs:169:18)
    at createFetchableDevEnvironment (.../nitro-nightly/dist/_build/vite.plugin.mjs:159:9)
    ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions