Tanstack router + React: Nx monorepo with module federation using Rspack
Heyo, I have been trying to get TanStack router to run on a React module federated host app inside an NX monorepo that uses Rspack.
Unfortunately I can't seem to get the Rspack config with Tanstack to run right since it never generates the routeTree.gen.ts file and of course errors.
I have had luck using the Tanstack CLI to generate the routes properly but I would prefer for it to be automated through the bundler instead of having to run another tool alongside the dev env. Here is the current rspack.config.ts file:
Any help is very much appreciated!
0 Replies