From 94981851d20837901552a250387280063eac83ac Mon Sep 17 00:00:00 2001 From: AkrAm Date: Thu, 17 Oct 2024 22:02:32 +0600 Subject: [PATCH] fix: TypeScript Errors in SSR Setup with Ziggy Props when Builds (#430) --- stubs/inertia-react-ts/resources/js/ssr.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stubs/inertia-react-ts/resources/js/ssr.tsx b/stubs/inertia-react-ts/resources/js/ssr.tsx index fededb16b..5811c0556 100644 --- a/stubs/inertia-react-ts/resources/js/ssr.tsx +++ b/stubs/inertia-react-ts/resources/js/ssr.tsx @@ -22,7 +22,9 @@ createServer((page) => // @ts-expect-error global.route = (name, params, absolute) => route(name, params as any, absolute, { + // @ts-expect-error ...page.props.ziggy, + // @ts-expect-error location: new URL(page.props.ziggy.location), }); /* eslint-enable */