\r\n ~~~~\r\n\r\n../../.yarn/cache/@trpc-server-npm-9.8.1-katt-issue-1020-pin-2021-09-27-12-36-16.6-cdb5a7a4be-e62c21a45b.zip/node_modules/@trpc/server/dist/declarations/src/adapters/node-http/types.d.ts:1:23 - error TS2688: Cannot find type definition file for 'node'.\r\n\r\n1 /// \u003Creference types=\"node\" />\r\n ~~~~\r\n\r\n../../.yarn/cache/@trpc-server-npm-9.8.1-katt-issue-1020-pin-2021-09-27-12-36-16.6-cdb5a7a4be-e62c21a45b.zip/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../../.yarn/cache/@trpc-server-npm-9.8.1-katt-issue-1020-pin-2021-09-27-12-36-16.6-cdb5a7a4be-e62c21a45b.zip/node_modules/@trpc/server/dist/declarations/src/adapters/standalone.d.ts:1:23 - error TS2688: Cannot find type definition file for 'node'.\r\n\r\n1 /// \u003Creference types=\"node\" />\r\n ~~~~\r\n\r\n../../.yarn/cache/@trpc-server-npm-9.8.1-katt-issue-1020-pin-2021-09-27-12-36-16.6-cdb5a7a4be-e62c21a45b.zip/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; }'.\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\n../../.yarn/cache/@trpc-server-npm-9.8.1-katt-issue-1020-pin-2021-09-27-12-36-16.6-cdb5a7a4be-e62c21a45b.zip/node_modules/@trpc/server/dist/declarations/src/http/internals/types.d.ts:1:23 - error TS2688: Cannot \r\nfind type definition file for 'node'.\r\n\r\n1 /// \u003Creference types=\"node\" />\r\n ~~~~\r\n\r\n../../.yarn/cache/@trpc-server-npm-9.8.1-katt-issue-1020-pin-2021-09-27-12-36-16.6-cdb5a7a4be-e62c21a45b.zip/node_modules/@trpc/server/dist/declarations/src/subscription.d.ts:1:23 - error TS2688: Cannot find type definition file for 'node'.\r\n\r\n1 /// \u003Creference types=\"node\" />\r\n ~~~~\r\n\r\n../../.yarn/cache/tarn-npm-3.0.1-afc495be8f-c7347ce8c4.zip/node_modules/tarn/dist/Pool.d.ts:1:23 - error TS2688: Cannot find type definition file for 'node'.\r\n\r\n1 /// \u003Creference types=\"node\" />\r\n ~~~~\r\n\r\n\r\nFound 9 errors.\r\n```\r\n\r\nThe one place I refer to the server from my client is in one file:\r\n\r\n```ts\r\nimport type { AppRPCRouter } from \"@ski/server/src/api/router\";\r\nimport { createReactQueryHooks } from \"@trpc/react\";\r\n\r\nexport const trpc = createReactQueryHooks\u003CAppRPCRouter>();\r\n```\r\n\r\nI'm not sure what's going on here, as it looks like typescript is trying to build (or typecheck) the server files, but then doesn't have the correct local packages to be able to do this (objection is the ORM I'm using on the server).\r\n\r\nHow would I go about fixing this?\r\n\r\nThanks!",[],1022,"Typescript errors when building","2022-10-04T18:08:08Z","https://github.com/trpc/trpc/issues/1022",0.67424047,{"description":2927,"labels":2928,"number":2929,"owner":2859,"repository":2859,"state":2881,"title":2930,"updated_at":2931,"url":2932,"score":2933},"Hi @KATT, \r\nThank you for this great library. \r\n\r\nI am reporting that the server types need updates after the latest typescript release (4.6): \r\n\r\n```bash\r\nnode_modules/@trpc/server/dist/declarations/src/TRPCError.d.ts:7:14 - error TS2416: Property 'cause' in type 'TRPCError' is not assignable to the same property in base type 'Error'.\r\n Type 'unknown' is not assignable to type 'Error | undefined'.\r\n\r\n7 readonly cause?: unknown;\r\n ~~~~~\r\n\r\n\r\nFound 1 error in node_modules/@trpc/server/dist/declarations/src/TRPCError.d.ts:7\r\n```\r\n\r\n\r\n\r\nBest regards \r\n",[],1588,"Type error in @trpc/server with TS 4.6","2022-10-04T12:03:04Z","https://github.com/trpc/trpc/issues/1588",0.67551064,{"description":2935,"labels":2936,"number":2943,"owner":2859,"repository":2859,"state":2881,"title":2944,"updated_at":2945,"url":2946,"score":2947},"### Provide environment information\r\n\r\n```\r\n System:\r\n OS: Linux 5.15 Manjaro Linux\r\n CPU: (12) x64 AMD Ryzen 5 4600H with Radeon Graphics\r\n Memory: 7.99 GB / 15.05 GB\r\n Container: Yes\r\n Shell: 5.1.16 - /bin/bash\r\n Binaries:\r\n Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node\r\n Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn\r\n npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm\r\n Browsers:\r\n Firefox: 105.0.3\r\n npmPackages:\r\n @tanstack/react-query: ^4.13.0 => 4.13.0 \r\n @trpc/client: ^10.0.0-rc.1 => 10.0.0-rc.1 \r\n @trpc/react-query: ^10.0.0-rc.1 => 10.0.0-rc.1 \r\n @trpc/server: ^10.0.0-rc.1 => 10.0.0-rc.1 \r\n react: 17.0.1 => 17.0.1 \r\n typescript: ~4.3.5 => 4.3.5 \r\n```\r\n\r\n### Describe the bug\r\n\r\nIt is currently not possible to run `@trpc/react-query` with TypeScript versions older than 4.5 ([see TS changelog](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/#type-on-import-names)). Upgrading to 4.5 fixes this issue.\r\n\r\nThe following is thrown when running `tsc` on TS 4.3:\r\n\r\n\r\n\r\n### Link to reproduction\r\n\r\nhttps://stackblitz.com/edit/github-pe2txe?file=src/main.ts\r\n\r\n### To reproduce\r\n\r\n1. Open the reproduction link\r\n2. Run `npm run tsc`\r\n3. See error\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [X] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[2937,2940],{"name":2938,"color":2939},"📚 documentation / examples","0075ca",{"name":2941,"color":2942},"👻 invalid","e4e669",3088,"bug: @trpc/react-query breaks in typescript \u003C 4.5","2022-12-09T12:02:03Z","https://github.com/trpc/trpc/issues/3088",0.6777675,{"description":2949,"labels":2950,"number":2954,"owner":2859,"repository":2859,"state":2881,"title":2955,"updated_at":2956,"url":2957,"score":2958},"### Provide environment information\r\n\r\n```\r\nSystem:\r\n OS: macOS 13.2.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 3.48 GB / 32.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 19.8.1 - ~/.asdf/installs/nodejs/19.8.1/bin/node\r\n Yarn: 1.22.19 - ~/.asdf/installs/nodejs/19.8.1/bin/yarn\r\n npm: 9.5.1 - ~/.asdf/plugins/nodejs/shims/npm\r\n Browsers:\r\n Brave Browser: 113.1.51.114\r\n Safari: 16.3\r\n npmPackages:\r\n @trpc/server: ^10.28.0 => 10.28.0\r\n react: ^18.2.0 => 18.2.0\r\n typescript: ^5.0.4 => 5.0.4\r\n```\r\n\r\n### Describe the bug\r\n\r\n```\r\nnode_modules/.pnpm/@trpc+server@10.28.0/node_modules/@trpc/server/src/core/internals/procedureBuilder.ts:404:20 - error TS2339: Property 'error' does not exist on type 'MiddlewareResult\u003Cany>'.\r\n Property 'error' does not exist on type 'MiddlewareOKResult\u003Cany>'.\r\n\r\n404 throw result.error;\r\n```\r\n\r\n```\r\nnode_modules/.pnpm/@trpc+server@10.28.0/node_modules/@trpc/server/src/deprecated/internals/procedure.ts:244:20 - error TS2339: Property 'error' does not exist on type 'MiddlewareResult\u003Cany>'.\r\n Property 'error' does not exist on type 'MiddlewareOKResult\u003Cany>'.\r\n\r\n244 throw result.error;\r\n```\r\n\r\n### To reproduce\r\n\r\nWhen trying to build via `tsc`, I receive the following error: `Property 'error' does not exist on type 'MiddlewareOKResult\u003Cany>'.`\r\n\r\n### Additional information\r\nAdding `\"skipLibCheck\": true,` doesn't work.\r\n\r\n_No response_\r\n\r\n### 👨👧👦 Contributing\r\n\r\n- [X] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!\r\n\r\n\r\n\n\n\u003Csub>[T-80](https://linear.app/trpc/issue/T-80/bug-ts2339-error-on-middlewareokresultany)\u003C/sub>",[2951],{"name":2952,"color":2953},"⏮ needs reproduction","000055",4426,"bug: TS2339 error on MiddlewareOKResult\u003Cany>","2023-06-14T18:01:59Z","https://github.com/trpc/trpc/issues/4426",0.6802936,["Reactive",2960],{},["Set"],["ShallowReactive",2963],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f2goxzuqI_csBNe2t-VkeBpjvHwsDutiHMOs_PFxYUDE":-1},"/trpc/trpc-openapi/335"]