AppRouter being inffered as any

I am trying to setup TRPC for my react native app in a turbo repo. But after importing the AppRouter it is showing as 'any'. I have no clue what I did wrong as I was following the guide from TRPC doc. The react-native app is a bare-rn app. And I am using yarn as my package manager with
"installConfig": {
    "hoistingLimits": "workspaces"
},

This is my directory structure
--turbo-repo
  |__ apps
     |__ react-native-app
  |
  |__ backend
     |__express-server(trpc)
  |
  |__ packages
Was this page helpful?