Skip to content

nitro not working with tanstack start monorepo #3917

@darklight9811

Description

@darklight9811

Environment

bun: 1.3.5
nitro: 3.0.1-alpha.1
os: windows 11

Reproduction

repro: https://github.com/darklight9811/start-monorepo

steps:

  • create monorepo
  • add tanstack start to a package dependency
  • try to run it

Describe the bug

ERROR Worker error: ENOENT: no such file or directory, listen '\.\pipe\nitro-vite-2-70760-4962.sock'

Additional context

reference: TanStack/router#6235 (comment)

Logs

ERROR  Worker error: ENOENT: no such file or directory, listen '\\.\pipe\nitro-vite-2-10500-7193.sock'                                                  01:19:44  

    at serve (unknown)
    at <anonymous> (node:_http_server:271:39)
    at <anonymous> (node:_http_server:248:33)
    at <anonymous> (C:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\nitro@3.0.1-alpha.1+ecdb8d58a185bb87\node_modules\nitro\dist\runtime\internal\vite\dev-worker.mjs:256:14)
    at Promise (unknown:1:11)
    at listen (C:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\nitro@3.0.1-alpha.1+ecdb8d58a185bb87\node_modules\nitro\dist\runtime\internal\vite\dev-worker.mjs:254:14)

error when starting dev server:
postMessage@[native code]
sendMessage@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\nitro@3.0.1-alpha.1+ecdb8d58a185bb87\node_modules\nitro\dist\_dev.mjs:135:29
FetchableDevEnvironment@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\nitro@3.0.1-alpha.1+ecdb8d58a185bb87\node_modules\nitro\dist\_build\vite.plugin.mjs:237:31
createFetchableDevEnvironment@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\nitro@3.0.1-alpha.1+ecdb8d58a185bb87\node_modules\nitro\dist\_build\vite.plugin.mjs:227:37
@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\vite@8.0.0-beta.5+0329869f1ff3bdbc\node_modules\vite\dist\node\chunks\node.js:25903:71
@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\vite@8.0.0-beta.5+0329869f1ff3bdbc\node_modules\vite\dist\node\chunks\node.js:25902:70
map@
_createServer@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\vite@8.0.0-beta.5+0329869f1ff3bdbc\node_modules\vite\dist\node\chunks\node.js:25902:60 
@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\vite@8.0.0-beta.5+0329869f1ff3bdbc\node_modules\vite\dist\node\cli.js
processTicksAndRejections@
error: script "dev" exited with code 1
error: script "dev" exited with code 1

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