T
TanStack15mo ago
mute-gold

Not able to build start app

[6:37:23 PM] ERROR [tsr-routes-manifest] Could not load tsr:routes-manifest (imported by node_modules/.pnpm/@tanstack+start@1.43.4_@opentelemetry+api@1.9.0_@types+node@20.14.9_drizzle-orm@0.31.2_@cloud_c3xbxkqqwnxdaj4km4r37i5kie/node_modules/@tanstack/start/dist/esm/router-manifest/index.js): Cannot read properties of undefined (reading 'map')

at Object.load (/testapp/node_modules/.pnpm/@tanstack+start@1.43.4_@opentelemetry+api@1.9.0_@types+node@20.14.9_drizzle-orm@0.31.2_@cloud_c3xbxkqqwnxdaj4km4r37i5kie/node_modules/@tanstack/start/dist/esm/config/index.js:284:46)
at async PluginDriver.hookFirstAndGetPlugin (/testapp/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:19674:28)
at async /testapp/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:18845:33
at async Queue.work (/testapp/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:19884:32)
[6:37:23 PM] ERROR [tsr-routes-manifest] Could not load tsr:routes-manifest (imported by node_modules/.pnpm/@tanstack+start@1.43.4_@opentelemetry+api@1.9.0_@types+node@20.14.9_drizzle-orm@0.31.2_@cloud_c3xbxkqqwnxdaj4km4r37i5kie/node_modules/@tanstack/start/dist/esm/router-manifest/index.js): Cannot read properties of undefined (reading 'map')

at Object.load (/testapp/node_modules/.pnpm/@tanstack+start@1.43.4_@opentelemetry+api@1.9.0_@types+node@20.14.9_drizzle-orm@0.31.2_@cloud_c3xbxkqqwnxdaj4km4r37i5kie/node_modules/@tanstack/start/dist/esm/config/index.js:284:46)
at async PluginDriver.hookFirstAndGetPlugin (/testapp/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:19674:28)
at async /testapp/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:18845:33
at async Queue.work (/testapp/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:19884:32)
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
eastern-cyan15mo ago
Are you using Windows by any chance for your dev environment?
passive-yellow
passive-yellow15mo 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
eastern-cyan15mo 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
passive-yellow15mo 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
eastern-cyan15mo 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
eastern-cyan15mo ago
Someting to do with this code:
No description
eastern-cyan
eastern-cyan15mo ago
I think tsrGetManigest() ends up being null or undefined. Sorry, not a JS expert 😄
passive-yellow
passive-yellow15mo 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
passive-yellow15mo ago
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
eastern-cyan15mo 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
passive-yellow15mo 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
eastern-cyan15mo 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
eastern-cyan15mo ago
different bug, but also fs related 😄
passive-yellow
passive-yellow15mo 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
causal-orange13mo ago
No description
causal-orange
causal-orange13mo ago
for some reason the js output files are also different
causal-orange
causal-orange13mo ago
No description
causal-orange
causal-orange13mo 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-fn
causal-orange
causal-orange13mo 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
causal-orange13mo ago
maybe you can take a look at this build module

Did you find this page helpful?