\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!",[3094,3097],{"name":3095,"color":3096},"👻 invalid","e4e669",{"name":3035,"color":3036},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":3104,"labels":3105,"number":3106,"owner":3022,"repository":3022,"state":3046,"title":3107,"updated_at":3108,"url":3109,"score":3110},"### 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.6366706,{"description":3112,"labels":3113,"number":3118,"owner":3022,"repository":3022,"state":3046,"title":3119,"updated_at":3120,"url":3121,"score":3122},"### Provide environment information\n\nSystem:\n OS: macOS 15.5\n CPU: (12) arm64 Apple M4 Pro\n Memory: 125.41 MB / 24.00 GB\n Shell: 5.9 - /bin/zsh\n Binaries:\n Node: 20.15.0 - ~/.local/state/fnm_multishells/47420_1749297684278/bin/node\n Yarn: 1.22.22 - ~/.local/state/fnm_multishells/47420_1749297684278/bin/yarn\n npm: 10.7.0 - ~/.local/state/fnm_multishells/47420_1749297684278/bin/npm\n pnpm: 10.2.0 - ~/.local/state/fnm_multishells/47420_1749297684278/bin/pnpm\n bun: 1.2.2 - ~/.bun/bin/bun\n Browsers:\n Chrome: 137.0.7151.69\n Safari: 18.5\n npmPackages:\n @trpc/server: ^11.3.1 => 11.3.1 \n typescript: ^5.8.0 => 5.8.3 \n\n\n### Describe the bug\nI need to bundle my library that has a trpc router. I use tsc + tsdown.\n\nIt doesn't bundle types from `\"@trpc/server\"` and imports from them instead.\n\n```ts\nimport * as _trpc_server_unstable_core_do_not_import0 from \"@trpc/server/unstable-core-do-not-import\";\nimport * as _trpc_server1 from \"@trpc/server\";\n```\n\n### Link to reproduction\n\nhttps://github.com/Zombobot1/tsdown-trcp-repro\n\n### To reproduce\n\nopen `index.d.ts`\nor\n```ts\npnpm i \npnpm dev\nopen index.d.ts\n```\n\n### Additional information\n\ntsdown authors suspect issues with the current trpc implementation \n\nhttps://github.com/rolldown/tsdown/issues/303#issuecomment-2952286118\n\n### 👨👧👦 Contributing\n\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[3114,3117],{"name":3115,"color":3116},"🙋♂️ help wanted","008672",{"name":3035,"color":3036},6814,"bug: trpc server cannot be properly bundled with tsc + tsdown","2025-06-12T11:16:46Z","https://github.com/trpc/trpc/issues/6814",0.6411972,["Reactive",3124],{},["Set"],["ShallowReactive",3127],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fO7GJH4dSvRZjyuSpOC5nDqyu58YIdmRz16E1zoaAdDE":-1},"/trpc/trpc/6753"]