Router Monorepo examples broken
Just tried to fork all 3 examples about monorepos and all of them are not working as expected.
useLoaderData and useSearch are always inferred as
any
I checked previous questions and strict ts config is set to true.
Any ideas? I am trying to setup the same structure in my project and so far everything becomes any.
I tried running the project, rebuilding dependencies, etc. Can't get rid of any

3 Replies
rare-sapphireOP•19h ago
Fixed by adding declaration: true, declarationMap: true, composite: true,
incremental: true to both packages in my setup, hope it is useful for someone else in the future
absent-sapphire•18h ago
should not be necessary
how did you "fork" the examples?
rare-sapphireOP•11h ago
I tried with stack blitz fork in the bottom left corner. And locally I cloned the repo and copied paste the specific example in a separate location to install dependencies of just the example