Skip to content

Router does'nt work with monorepos/nitro #6235

@darklight9811

Description

@darklight9811

Which project does this relate to?

Start

Describe the bug

When trying to create a tanstack start app inside a monorepo (using bun), it throws an error when I try to run dev:

 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\[email protected]+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\[email protected]+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\[email protected]+ecdb8d58a185bb87\node_modules\nitro\dist\_dev.mjs:135:29
FetchableDevEnvironment@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\[email protected]+ecdb8d58a185bb87\node_modules\nitro\dist\_build\vite.plugin.mjs:237:31
createFetchableDevEnvironment@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\[email protected]+ecdb8d58a185bb87\node_modules\nitro\dist\_build\vite.plugin.mjs:227:37
@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\[email protected]+0329869f1ff3bdbc\node_modules\vite\dist\node\chunks\node.js:25903:71
@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\[email protected]+0329869f1ff3bdbc\node_modules\vite\dist\node\chunks\node.js:25902:70
map@
_createServer@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\[email protected]+0329869f1ff3bdbc\node_modules\vite\dist\node\chunks\node.js:25902:60 
@c:\Users\rafae\Desktop\projects\tests\start\node_modules\.bun\[email protected]+0329869f1ff3bdbc\node_modules\vite\dist\node\cli.js
processTicksAndRejections@
error: script "dev" exited with code 1
error: script "dev" exited with code 1

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. create a monorepo
  2. use the cli to start a tanstack/start app inside a package
  3. install all dependencies as a monorepo
  4. try to run the app

Expected behavior

  • for the app to work as expected

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.132.0
  • OS: Windows 11
  • Browser: not applicable
  • Browser Version: not applicable
  • Bundler: vite
  • Bundler Version: 7 and 8 beta

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