\n \u003C/HydrateClient>\n );\n};\n\nexport default Page;\n```\nAll is working on local development is perfect. But when I try to build it-\n\n```\nError occurred prerendering page \"/unavailability\". Read more: https://nextjs.org/docs/messages/prerender-error\nTRPCClientError: Unauthorized request. Please login\n at s.from (/vercel/path0/.next/server/chunks/949.js:3:83107)\n at /vercel/path0/.next/server/chunks/949.js:3:89907\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\nExport encountered an error on /(dashboard)/unavailability/page: /unavailability, exiting the build.\n ⨯ Static worker exited with code: 1 and signal: null\n ELIFECYCLE Command failed with exit code 1.\nError: Command \"pnpm run build\" exited with 1\n\n```\n\n\nSo, it is natural that on build time, there is no authentications. But it stopping to build it-\n\n\n\n\n### Link to reproduction\n\nhttps://github.com/wegreet/dashboard-new-design\n\n### To reproduce\n\nJust build it with vercel\n\n### Additional information\n\n_No response_\n\n### 👨👧👦 Contributing\n\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[2923,2926],{"name":2924,"color":2925},"👻 invalid","e4e669",{"name":2873,"color":2874},6441,"bug: TRPC with nextjs 15(App Router) production build failed!","2025-02-05T17:24:47Z","https://github.com/trpc/trpc/issues/6441",0.6292492,{"description":2933,"labels":2934,"number":2935,"owner":2860,"repository":2860,"state":2884,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Provide environment information\r\n\r\n```\r\n System:\r\n OS: macOS 12.5.1\r\n CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz\r\n Memory: 6.09 GB / 32.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 18.8.0 - ~/.volta/tools/image/node/18.8.0/bin/node\r\n Yarn: 1.22.17 - ~/.volta/tools/image/yarn/1.22.17/bin/yarn\r\n npm: 8.18.0 - ~/.volta/tools/image/node/18.8.0/bin/npm\r\n Browsers:\r\n Edge: 105.0.1343.33\r\n Firefox: 95.0.2\r\n Safari: 15.6.1\r\n npmPackages:\r\n @trpc/server: 10.0.0-proxy-alpha.76 => 10.0.0-proxy-alpha.76 \r\n```\r\n\r\n### Describe the bug\r\n\r\nI have good reason to believe the following issue is back (search issue history to see previous fixes) with trpc version 10:\r\n\r\n`The inferred type of 'appRouter' cannot be named without a reference to '../../node_modules/@trpc/server/dist/error/formatter.js'. This is likely not portable. A type annotation is necessary.` Also occurs with `'../../node_modules/@trpc/server/dist/core/internals/utils.js'`.\r\n\r\n#1960 fixed this before, is it possible that the same bug has presented again?\r\n\r\n### To reproduce\r\n\r\nWith an esm module, try to use trpc 10. _More specifically, set up a router with routes in the new trpc10 style_. Also, is `composite: true` required with trpc? I couldn't infer types from the client without this set, and without a `\"references\": [{ \"path\": \"../bff\" }],` in the client tsconfig.json.\r\n\r\ntsconfig.json (server):\r\n\r\n```\r\n{\r\n \"compilerOptions\": {\r\n \"skipLibCheck\": true,\r\n \"composite\": true,\r\n \"module\": \"ESNext\",\r\n \"moduleResolution\": \"Node16\",\r\n \"sourceMap\": true,\r\n \"outDir\": \"./dist\",\r\n \"pretty\": true,\r\n \"strict\": true,\r\n \"noUnusedParameters\": true,\r\n \"removeComments\": true,\r\n \"noImplicitReturns\": true,\r\n \"allowSyntheticDefaultImports\": true,\r\n \"esModuleInterop\": true,\r\n \"experimentalDecorators\": true,\r\n \"resolveJsonModule\": true,\r\n \"declaration\": true,\r\n \"declarationMap\": true,\r\n \"rootDir\": \"src\",\r\n \"baseUrl\": \".\",\r\n \"paths\": {\r\n \"@/*\": [\"./src/*\"],\r\n },\r\n },\r\n \"include\": [\r\n \"./src/**/*.ts\"\r\n ],\r\n}\r\n```\r\n\r\n### Additional information\r\n\r\nI've tried the fix in \"paths\", and it doesn't work for me.\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2717,"bug: The inferred type of 'appRouter' cannot be named without a reference to '../../node_modules/@trpc/server/dist/error/formatter.js'. This is likely not portable. A type annotation is necessary.","2022-10-04T00:17:44Z","https://github.com/trpc/trpc/issues/2717",0.63667053,{"description":2941,"labels":2942,"number":2943,"owner":2860,"repository":2860,"state":2884,"title":2944,"updated_at":2945,"url":2946,"score":2947},"### Provide environment information\n\n```\r\n System:\r\n OS: macOS 13.2.1\r\n CPU: (6) x64 Intel(R) Core(TM) i5-9400T CPU @ 1.80GHz\r\n Memory: 96.92 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.1/bin/yarn\r\n npm: 8.19.3 - ~/.nvm/versions/node/v16.19.1/bin/npm\r\n Browsers:\r\n Brave Browser: 110.1.48.158\r\n Chrome: 110.0.5481.100\r\n Safari: 16.3\r\n npmPackages:\r\n @tanstack/react-query: ^4.24.9 => 4.24.9 \r\n @trpc/client: ^10.12.0 => 10.12.0 \r\n @trpc/next: ^10.12.0 => 10.12.0 \r\n @trpc/react-query: ^10.12.0 => 10.12.0 \r\n @trpc/server: ^10.12.0 => 10.12.0 \r\n next: latest => 13.1.6 \r\n react: ^18.1.0 => 18.2.0 \r\n typescript: 4.6.4 => 4.6.4 \r\n```\n\n### Describe the bug\n\nI am trying to build my application, but when i ran `yarn build` locally or on vercel i have this error:\r\n\r\n```\r\ninfo - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules\r\ninfo - Linting and checking validity of types .Failed to compile.\r\n\r\n./node_modules/@trpc/next/dist/createTRPCNext.d.ts:10:41\r\nType error: '>' expected.\r\n\r\n 8 | export interface CreateTRPCNextBase\u003CTRouter extends AnyRouter, TSSRContext extends NextPageContext> {\r\n 9 | useContext(): CreateReactUtilsProxy\u003CTRouter, TSSRContext>;\r\n> 10 | withTRPC: ReturnType\u003Ctypeof withTRPC\u003CTRouter, TSSRContext>>;\r\n | ^\r\n 11 | useQueries: TRPCUseQueries\u003CTRouter>;\r\n 12 | }\r\n 13 | /**\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\r\n```\r\n\r\n\r\n\n\n### Link to reproduction\n\nhttps://stackblitz.com/github/trpc/examples-next-minimal-starter\n\n### To reproduce\n\nI am just running my app...\n\n### Additional information\n\n_No response_\n\n### 👨👧👦 Contributing\n\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],3832,"bug: Can't build my Next application because of a type error in the '@trpc/next' package","2023-03-13T00:05:36Z","https://github.com/trpc/trpc/issues/3832",0.6430081,{"description":2949,"labels":2950,"number":2954,"owner":2860,"repository":2860,"state":2884,"title":2955,"updated_at":2956,"url":2957,"score":2958},"Hi there,\r\n\r\nfirst of all: Thanks a lot for creating trpc :) I just recently stumpled upon it and I'm quite enthusiastic about it's design.\r\n\r\nNow to the problem:\r\n\r\nI'm trying to use trpc in a pnpm-driven monorepo. When I try to compile the package that's using trpc (both `@trpc/server` and `@trpc/client`), `tsc` fails with:\r\n\r\n```\r\n../../../../node_modules/.pnpm/@trpc+server@9.23.4/node_modules/@trpc/server/dist/declarations/src/adapters/node-http/types.d.ts:3:16 - error TS2307: Cannot find module 'qs' or its corresponding type declarations.\r\n\r\n3 import qs from 'qs';\r\n\r\n[...]\r\n\r\n../../../../node_modules/.pnpm/@trpc+server@9.23.4/node_modules/@trpc/server/dist/declarations/src/adapters/standalone.d.ts:5:107 - error TS2344: Type 'IncomingMessage' does not satisfy the constraint 'NodeHTTPRequest'.\r\n Type 'IncomingMessage' is not assignable to type '{ method?: string; query?: any; body?: unknown; }' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.\r\n Types of property 'method' are incompatible.\r\n Type 'string | undefined' is not assignable to type 'string'.\r\n Type 'undefined' is not assignable to type 'string'.\r\n\r\n5 export declare type CreateHTTPHandlerOptions\u003CTRouter extends AnyRouter> = NodeHTTPHandlerOptions\u003CTRouter, http.IncomingMessage, http.ServerResponse>;\r\n```\r\n\r\nThe first one\r\n```\r\nTS2307: Cannot find module 'qs' or its corresponding type declarations.\r\n```\r\n\r\ncan be fixed by installing `@types/qs`. However, I don't think that should be necessary.\r\n\r\nThe second one\r\n```\r\nTS2344: Type 'IncomingMessage' does not satisfy the constraint 'NodeHTTPRequest'.\r\n```\r\nisn't explicable to me but at least resembles one of the errors documented in #1022.\r\n\r\nThis issue was closed by #1151, which should be included with the trpc version I'm using (9.23.4).\r\n\r\nIt's possible that this is related to my use of pnpm.\r\n\r\nAny hint would be appreciated :) I'll keep you posted, if I find anything myself.",[2951],{"name":2952,"color":2953},"🐛 bug","d73a4a",1904,"Type Errors","2022-10-04T12:02:52Z","https://github.com/trpc/trpc/issues/1904",0.6456784,["Reactive",2960],{},["Set"],["ShallowReactive",2963],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fO7GJH4dSvRZjyuSpOC5nDqyu58YIdmRz16E1zoaAdDE":-1},"/trpc/trpc/6753"]