TanStackT
TanStack5w ago
6 replies
endless-jade

Error using getRequestHeaders()

Tech stack:
Tanstack Start
Better Auth
Prisma ORM
Mongodb Database

I have been facing some problems when trying to implement the logout button with server side data. I tried to use the getRequestHeaders function from tanstack/react-start/server to use the headers into auth.api.getSession(), but it shows some weird warning overlays in the frontend.

[plugin:vite:import-analysis] Failed to resolve import "tanstack-start-injected-head-scripts:v" from "node_modules/.pnpm/@tanstack+start-server-core@1.141.2/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js?v=7adb03f7". Does the file exist?
Was this page helpful?