-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for app dir? #97
Comments
I wanted to get rid of all my pages-routing and trpc-panel was the last one there. import { NextResponse } from 'next/server';
import { renderTrpcPanel } from 'trpc-panel';
import { appRouter } from '@/server';
export async function GET(req: Request) {
return new NextResponse(
renderTrpcPanel(appRouter, {
url: '/api/trpc',
transformer: 'superjson',
}),
{
status: 200,
headers: [['Content-Type', 'text/html'] as [string, string]],
},
);
} Maybe this should be added to the docs |
Hmm, i'm getting this error for some reason when I move from pages router to app router. ⨯ RangeError: Maximum call stack size exceeded
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107)
at Module.zodToJsonSchema (webpack-internal:///(rsc)/../../node_modules/.pnpm/[email protected][email protected]/node_modules/zod-to-json-schema/dist/esm/index.js:43:107) |
I'm getting this error: trpc-panel: Failed to parse procedure sayHello, Couldn't parse node. |
The example only covers pages dir
The text was updated successfully, but these errors were encountered: