NazCodeland
merging other routers to appRouter
ahh, I think there is a circular dependency going on here ...
router.ts
is importing the child routers which are importing variables declared in router.ts
so they haven't been initialized since router.ts
code hasn't run yet so they are undefined -- just taking a guess7 replies
if I export 'appRouter' instead of 'router' I get error
sorry for the late response just seeing this, I managed to fix it, in my hooks.server.ts(I'm using Svelte/SvelteKit) I had
instead of
My typescript wasn't working properly so that wasn't even throwing a warning, but since fixing my typescript I noticed it
4 replies