You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i get this errors when trying to structure my endpoints into seperate files:
And here you can see my code and structure:
api/index.ts:
api/endpoints/contacts.ts:
app.config.js:
i tried many different things. It works totally fine when i put all of my querys directly into the index.ts file in the root. But when i try to restructure and merge routers or define it this way i get the error above. I read trpc examples in the documentation but still gets this problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, i get this errors when trying to structure my endpoints into seperate files:

And here you can see my code and structure:

api/index.ts:
api/endpoints/contacts.ts:

app.config.js:

i tried many different things. It works totally fine when i put all of my querys directly into the index.ts file in the root. But when i try to restructure and merge routers or define it this way i get the error above. I read trpc examples in the documentation but still gets this problem.
Beta Was this translation helpful? Give feedback.
All reactions