Not able to build start app
Was playing around tanstack start but could't build the app dev mode is working fine
using same config as mentioned here https://github.com/TanStack/router/tree/main/examples/react/start-basic-react-query
GitHub
router/examples/react/start-basic-react-query at main · TanStack/ro...
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router
20 Replies
eastern-cyan•15mo ago
Are you using Windows by any chance for your dev environment?
passive-yellow•15mo ago
You may want to use
start-basic
as your starting point. Its what's pretty much guaranteed to work at this point.
Also, this could be it 😅, since the start-basic-react-query
is building on main
.
Or even Drizzle for that, looking at your error message from above.eastern-cyan•15mo ago
@Sean Cassiere I also have this error. I ran the start-basic example from stackblitz, by downloading the project from there. It works fine there, since it is linux-based. However, on Windows, I got this error.
passive-yellow•15mo ago
Yup, sounds like a Windows thing... looking the source for Start, there's nothing obvious that stands out since we are using node fs stuff for reading from disk 🤔
eastern-cyan•15mo ago
@Sean Cassiere Yep. Confirmed. I was able to run the same code on Linux, but not on Windows. I am on Windows 11 and using node 22.4.0.
Hopefully you guys have a way to reproduce. 🍻
eastern-cyan•15mo ago
Someting to do with this code:

eastern-cyan•15mo ago
I think tsrGetManigest() ends up being null or undefined. Sorry, not a JS expert 😄
passive-yellow•15mo ago
Yes, its likely that. I've got a windows machine somewhere in storage. I'll fish it out and have to reset it. But afterwards, I should be able to try and debug this.
Just to confirm, your app is not in a monorepo right? its basically, cloning the
start-basic
example and trying to build?passive-yellow•15mo ago
Logged an issue for this. https://github.com/TanStack/router/issues/1889
GitHub
start-basic fails to build on windows · Issue #1889 · TanStack/rout...
Describe the bug Using the start-basic example, when you try to the build script it fails. Your Example Website or App Use the start-basic example Steps to Reproduce the Bug or Issue Clone the star...
eastern-cyan•15mo ago
correct. As you said in the issue above, could be Vinxi. I was playing around with Nuxt and was getting all kinds of issues there as well, since it uses Nitro, as does Vinxi.
passive-yellow•15mo ago
Oh wow, if its Nitro, then its even further upstream than I would have expected.
Which would be odd tbh, since the unjs stuff usually accounts for stuff like that. Then again, people make mistakes 🤷🏼♂️
eastern-cyan•15mo ago
GitHub
DEP0155 and DEP0156 warnings during nitro build · Issue #2523 · unj...
Environment node v22.1.0 npm 10.8.1 nitro 2.9.6 Reproduction reproduction Describe the bug Importing some 3-rd party libraries. such as nuxt-icon and primevue 4.0.0-rc.1 and running nitro build res...
eastern-cyan•15mo ago
different bug, but also fs related 😄
passive-yellow•15mo ago
To check if this is in Vinxi or Nitro, I'd have to spend time cloning their examples to try them out.
causal-orange•13mo ago

causal-orange•13mo ago
for some reason the js output files are also different
causal-orange•13mo ago

causal-orange•13mo ago
in mac,
virtual:$vinxi/handler/client
has imports: [ "_client-DisvigXA.js" ]
and that js file is the one of the different js output client-DisvigXA.js
im using my example repo to test this
https://github.com/nekochan0122/start-todolist-server-fncausal-orange•13mo ago
GitHub
vinxi/packages/vinxi/lib/build.js at main · nksaraf/vinxi
The Full Stack JavaScript SDK. Contribute to nksaraf/vinxi development by creating an account on GitHub.
causal-orange•13mo ago
maybe you can take a look at this build module