Closed Colonel-Sandvich closed 1 year ago
Not sure if this is related but i got type error that the url property is not part of httpBatchLink
maybe im doing something wrong, but i have the impression that this is how the api is used.
@wobsoriano thanks for this module :D
What versions of @trpc/server
, @trpc/client
and trpc-nuxt
do you have installed?
@trpc/server 10.20.0 @trpc/client 10.20.0 trpc-nuxt 0.8.0
@fskarmeta upgrade trpc-nuxt to 0.9.0
In this release the interal types were changed for
HTTPLinkOptions
In this PR the typeHTTPLinkOptions
that this package uses got renamed toHTTPLinkBaseOptions
but also in the process theheaders
property got moved to a new typeHTTPLinkOptions
declared here.This breaks typing of options in
httpLink
andhttpBatchLink
provided by this package.The fix is simple, just need to change the import from
'@trpc/client/dist/links/internals/httpUtils'
to'@trpc/client/dist/links/httpLink'
.PR here