src/routes/__root.tsx:11:61 - error TS2345: Argument of type '() => Promise' is not assignable to parameter of type 'ServerFn<"GET", "data", undefined, undefined, User | null>'. Type 'Promise' is not assignable to type 'Promise<{ id: string; app_metadata: { [x: string]: any; provider?: string | undefined; }; user_metadata: { [x: string]: any; }; aud: string; confirmation_sent_at?: string | undefined; recovery_sent_at?: string | undefined; ... 16 more ...; factors?: { ...; }[] | undefined; } | null> | { ...; } | null'. Type 'Promise' is not assignable to type 'Promise<{ id: string; app_metadata: { [x: string]: any; provider?: string | undefined; }; user_metadata: { [x: string]: any; }; aud: string; confirmation_sent_at?: string | undefined; recovery_sent_at?: string | undefined; ... 16 more ...; factors?: { ...; }[] | undefined; } | null>'. Type 'User | null' is not assignable to type '{ id: string; app_metadata: { [x: string]: any; provider?: string | undefined; }; user_metadata: { [x: string]: any; }; aud: string; confirmation_sent_at?: string | undefined; recovery_sent_at?: string | undefined; ... 16 more ...; factors?: { ...; }[] | undefined; } | null'. Type 'User' is not assignable to type '{ id: string; app_metadata: { [x: string]: any; provider?: string | undefined; }; user_metadata: { [x: string]: any; }; aud: string; confirmation_sent_at?: string | undefined; recovery_sent_at?: string | undefined; ... 16 more ...; factors?: { ...; }[] | undefined; }'. Types of property 'factors' are incompatible. Type 'Factor[] | undefined' is not assignable to type '{ id: string; friendly_name?: string | undefined; factor_type: "phone" | "totp" | { readonly [x: number]: string; toString: "Function is not serializable"; charAt: "Function is not serializable"; ... 47 more ...; [Symbol.iterator]: "Function is not serializable"; }; status: "verified" | "unverified"; created_at: str...'. Type 'Factor[]' is not assignable to type '{ id: string; friendly_name?: string | undefined; factor_type: "phone" | "totp" | { readonly [x: number]: string; toString: "Function is not serializable"; charAt: "Function is not serializable"; ... 47 more ...; [Symbol.iterator]: "Function is not serializable"; }; status: "verified" | "unverified"; created_at: str...'. Type 'Factor' is not assignable to type '{ id: string; friendly_name?: string | undefined; factor_type: "phone" | "totp" | { readonly [x: number]: string; toString: "Function is not serializable"; charAt: "Function is not serializable"; ... 47 more ...; [Symbol.iterator]: "Function is not serializable"; }; status: "verified" | "unverified"; created_at: str...'. Types of property 'factor_type' are incompatible. Type '(string & {}) | "phone" | "totp"' is not assignable to type '"phone" | "totp" | { readonly [x: number]: string; toString: "Function is not serializable"; charAt: "Function is not serializable"; charCodeAt: "Function is not serializable"; concat: "Function is not serializable"; ... 45 more ...; [Symbol.iterator]: "Function is not serializable"; }'. Type 'string & {}' is not assignable to type '"phone" | "totp" | { readonly [x: number]: string; toString: "Function is not serializable"; charAt: "Function is not serializable"; charCodeAt: "Function is not serializable"; concat: "Function is not serializable"; ... 45 more ...; [Symbol.iterator]: "Function is not serializable"; }'. Type 'string & {}' is not assignable to type '{ readonly [x: number]: string; toString: "Function is not serializable"; charAt: "Function is not serializable"; charCodeAt: "Function is not serializable"; concat: "Function is not serializable"; ... 45 more ...; [Symbol.iterator]: "Function is not serializable"; }'. Types of property 'toString' are incompatible. Type '() => string' is not assignable to type '"Function is not serializable"'. 11 const fetchUser = createServerFn({ method: 'GET' }).handler(async () => { ~~~~~~~~~~~~~ src/routes/_authed.tsx:7:15 - error TS7006: Parameter 'd' implicitly has an 'any' type. 7 .validator((d) => d as { email: string; password: string }) ~ src/utils/posts.ts:3:19 - error TS2307: Cannot find module 'redaxios' or its corresponding type declarations. 3 import axios from 'redaxios' ~~~~~~~~~~ src/utils/posts.ts:17:14 - error TS7006: Parameter 'r' implicitly has an 'any' type. 17 .then((r) => r.data) ~ src/utils/posts.ts:18:15 - error TS7006: Parameter 'err' implicitly has an 'any' type. 18 .catch((err) => { ~~~ src/utils/posts.ts:35:14 - error TS7006: Parameter 'r' implicitly has an 'any' type. 35 .then((r) => r.data.slice(0, 10)) ~ Found 6 errors in 3 files. Errors Files 1 src/routes/__root.tsx:11 1 src/routes/_authed.tsx:7 4 src/utils/posts.ts:3