[ERR_MODULE_NOT_FOUND]: Cannot find module ... `esm` ... Did you mean to import ... `cjs` ...?
I've been trying to deploy my TanStack Router SSR app to Netlify for the last couple days and I'm starting to lose hope. I thought something like that would be a breeze in 2025 but it looks like it's still a mess. So many yet so few pages documenting what needs to be done and all showing something different. Briefly looked at the TanStack Start page but seeing how it's a "framework" I ignored it... until today when I realised that it's not really a framework but just Router with a bunch of build tools on top of it.
So I installed it and finally managed to get my project to build and deploy to Netlify but now it keeps throwing the following error in the function logs: