alex
nodeHTTPHandler with Nitro
I'm trying to setup trpc with nitro.unjs.io using the
node-http
adapter.
Frontend setup:
There are no TS errors anywhere so the router setup should be correct.
However the nodeHTTPRequestHandler function always returns undefined
.
I've also tried the trpc-nuxt
package because apparently that's supposed to work with Nitro but I couldn't get it to work because I'm using trpc v11.3 replies
Type safety with enabled option
https://tkdodo.eu/blog/react-query-and-type-script#type-safety-with-the-enabled-option
What is the best way to solve this with trpc?
typescript: Type 'number | null' is not assignable to type 'number'.
19 replies