Route.useLoaderData() always resolves to ReadableStream<any>
v1.97.15
Getting type error:
Type 'ReadableStream<any>' is not assignable to type 'ReactNode'
4 Replies
ambitious-aqua•8mo ago
can you please provide a complete minimal example? there must be something wrong with typescript setup
do you have
strict: true
in tsconfig?rare-sapphireOP•8mo ago
Here: https://stackblitz.com/edit/tanstack-router-788sabp4?file=app%2Froutes%2Findex.tsx
So it resolves to
any
in Stackblitz so not exactly ReadableStream<any>
but still not type-safe @Manuel Schiller
Fixed when upgraded to 1.97.23xenial-black•8mo ago
I still have this issue with the latest version 1.102.1 with the tsconfig.json from the docs: TS version 5.7.3
I tested with and without the
@emotion
types.
In the Start Basic Stack Blitz it resolves to any
in my code it resolves ReadableStream
ambitious-aqua•7mo ago
most likey some types are missing
do you have the react types installed?