);\r\n }) as AppType;\r\n MyApp.getInitialProps = () => {\r\n return {\r\n someData: '123123',\r\n };\r\n };\r\nexport default trpc.withTRPC(MyApp);\r\n\r\n\r\n\r\nthis code should be in __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!",[],4159,"bug: getInitialProps in __app.tsx not work","2023-04-22T12:02:12Z","https://github.com/trpc/trpc/issues/4159",0.6760627,{"description":3126,"labels":3127,"number":3128,"owner":3043,"repository":3043,"state":3056,"title":3129,"updated_at":3130,"url":3131,"score":3132},"### Provide environment information\r\n\r\n``` \r\nSystem:\r\n OS: macOS 12.2.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 131.52 MB / 32.00 GB\r\n Shell: 3.2.57 - /bin/bash\r\n Binaries:\r\n Node: 18.8.0 - ~/.local/share/nvm/v18.8.0/bin/node\r\n Yarn: 1.22.19 - ~/.local/share/nvm/v18.8.0/bin/yarn\r\n npm: 8.18.0 - ~/.local/share/nvm/v18.8.0/bin/npm\r\n Browsers:\r\n Chrome: 106.0.5249.103\r\n Firefox: 105.0.2\r\n Safari: 15.3\r\n npmPackages:\r\n @trpc/client: ^10.0.0-proxy-beta.17 => 10.0.0-proxy-beta.17\r\n```\r\n\r\n\r\n### Describe the bug\r\n\r\nTypescript can't complete the typing of a query, see discussion https://github.com/trpc/trpc/discussions/2963\r\n\r\n\r\n`Property 'subscribe' does not exist on type 'DecoratedProcedureRecord\u003Cunknown, BuildProcedure\u003C\"subscription\", { _config: RootConfig\u003C{ ctx: {}; meta: {}; errorShape: never; transformer: CombinedDataTransformer; }>; _ctx_out: {}; _input_in: unique symbol; _input_out: unique symbol; _output_in: u\r\n nique symbol; _output_out: unique symbol; _meta: {}; }, Observable\u003C....'.`\r\n\r\n### Link to reproduction\r\n\r\nhttps://github.com/Lilja/trpc-v10-server-needed\r\n\r\n### To reproduce\r\n\r\nOpen up `src/index.ts` and modify the `type {AppRouter}` import, point it to the trpc repo OR a another router.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2972,"bug: @trpc/server needed in the frontend for types to work","2022-10-11T08:18:00Z","https://github.com/trpc/trpc/issues/2972",0.6804639,{"description":3134,"labels":3135,"number":3136,"owner":3043,"repository":3043,"state":3056,"title":3137,"updated_at":3138,"url":3139,"score":3140},"### Provide environment information\r\n\r\n```\r\n System:\r\n OS: Windows 10 10.0.22000\r\n CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor\r\n Memory: 3.32 GB / 15.93 GB\r\n Binaries:\r\n Node: 16.16.0 - ~\\scoop\\apps\\nodejs-lts\\current\\node.EXE\r\n npm: 8.15.1 - ~\\scoop\\apps\\nodejs-lts\\current\\bin\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0), Chromium (104.0.1293.47)\r\n Internet Explorer: 11.0.22000.120\r\n npmPackages:\r\n @trpc/client: ^10.0.0-alpha.45 => 10.0.0-alpha.45\r\n @trpc/server: ^10.0.0-alpha.45 => 10.0.0-alpha.45\r\n```\r\n\r\n### Describe the bug\r\n\r\nThis is on experimental version `10.0.0-alpha.45`\r\n\r\nTRPCClientError's data property is of `any` type, but it should be typed to `DefaultErrorData`, which will type the values `code`, `httpStatus`, `stack`, and `path`.\r\n\r\n### To reproduce\r\n\r\nIn query procedure:\r\n`throw new TRPCError({ code: \"NOT_FOUND\", message: \"Article not found.\" });`\r\n\r\nClient call:\r\n```\r\n try {\r\n const article = await trpcClient(fetch).article.get.query({ slug: \"slug-that-does-not-exist\" });\r\n } catch (error) {\r\n if (error instanceof TRPCClientError) {\r\n return { status: error.data.httpStatus, error }; // Typescript error: \"Unsafe member access .httpStatus on an `any` value.\"\r\n }\r\n }\r\n```\r\n\r\n### Additional information\r\n\r\nWorkaround: `(error.data as DefaultErrorData)`\r\n\r\nI'm working on setting up the Fetch adapter with SvelteKit. As the response is not available in the context prior to resolving unlike Next.js, the error has to be caught in the page Load function and converted to the correct status code for SvelteKit to handle the error. As an aside, SvelteKit does plan to make substantial changes around pages and Load function in the future, so this solution might change.\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2442,"bug: TRPCClientError data prop not typed","2022-08-16T07:34:10Z","https://github.com/trpc/trpc/issues/2442",0.68046814,["Reactive",3142],{},["Set"],["ShallowReactive",3145],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fr_-CN-MvZzMKjsfM73N1WtPIkTJBcl5yc0ttM1a_Leo":-1},"/trpc/trpc/3334"]