You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to compile.
./app/sitemap.ts
ReactServerComponentsError:
You're importing a component that needs next/headers. That only works in a Server Component but one of its parents is marked with "use client", so it's a Client Component.
Learn more: https://nextjs.org/docs/getting-started/react-essentials
╭─[/Users/chris/Repos/mine/Techtegrity/ubaldo/app/sitemap.ts:1:1]
1 │ import prisma from "#/lib/prisma";
2 │ import { headers } from "next/headers";
· ───────────────────────────────────────
3 │ import { getDomain } from "#/lib/utils";
4 │ import { allChangelogPosts, allLegalPosts } from "contentlayer/generated";
╰────
One of these is marked as a client entry with "use client":
./app/sitemap.ts
The text was updated successfully, but these errors were encountered:
when building locally, seeing
The text was updated successfully, but these errors were encountered: