Tarky
Tarky
Explore posts from servers
TtRPC
Created by Tarky on 10/9/2023 in #❓-help
Error while creating a mutation in NextJS
What do you mean?
9 replies
TtRPC
Created by Tarky on 10/9/2023 in #❓-help
Error while creating a mutation in NextJS
here is the root.ts file
import { exampleRouter } from "@/server/api/routers/example";
import { imageRouter } from "@/server/api/routers/image";
import { checkoutRouter } from "@/server/api/routers/checkout";
import { createTRPCRouter } from "@/server/api/trpc";

/**
* This is the primary router for your server.
*
* All routers added in /api/routers should be manually added here.
*/
export const appRouter = createTRPCRouter({
example: exampleRouter,
image: imageRouter,
checkout: checkoutRouter,
});

// export type definition of API
export type AppRouter = typeof appRouter;
import { exampleRouter } from "@/server/api/routers/example";
import { imageRouter } from "@/server/api/routers/image";
import { checkoutRouter } from "@/server/api/routers/checkout";
import { createTRPCRouter } from "@/server/api/trpc";

/**
* This is the primary router for your server.
*
* All routers added in /api/routers should be manually added here.
*/
export const appRouter = createTRPCRouter({
example: exampleRouter,
image: imageRouter,
checkout: checkoutRouter,
});

// export type definition of API
export type AppRouter = typeof appRouter;
9 replies
TtRPC
Created by Tarky on 10/9/2023 in #❓-help
Error while creating a mutation in NextJS
I am using the T3 stack
9 replies
TtRPC
Created by Tarky on 10/9/2023 in #❓-help
Error while creating a mutation in NextJS
In the root file, where all my routes go
9 replies