conradkohC
Convex Community2y ago
117 replies
conradkoh

Using SessionProvider with SSR

I encounter an error whenever the remix helpers are imported. It looks to be a build time error because this error happens even when the code is not executed.
// this is contained in app/route/app.tsx, which is the remix layout for all pages below the /app web path
import { Outlet } from '@remix-run/react';
import { SessionProvider } from 'convex-helpers/react/sessions';
export default function Layout() {
  return <div>hi</div>;
  // below is dead code, it doesn't get executed but still causes this to error out
  return (
    <div>
      <SessionProvider>
        <h1>App Layout</h1>
        <Outlet />
      </SessionProvider>
    </div>
  );
}
image.png
Was this page helpful?