Next.js Discord

Discord Forum

Error: An error occurred in the Server Components render

Unanswered
Tamaskan Dog posted this in #help-forum
Open in Discord
Tamaskan DogOP
This is the full error
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
  digest: 'DYNAMIC_SERVER_USAGE'
}


I'm using an App router. And this is not happening locally. Only when I build and run yarn next start.
The console is not giving me any clue.

This error appears when I navigate to my route /es/fundraiser/[id]/donate and also for /es/fundraiser/[id]/edit .

/es/fundraiser/[id] has no problem.

I'm also attaching the summary of routes when building.

On the donate page this is what I have, is a really simple server component and looks like other pages that I have that are not presenting this error

export default async function Page({
  params,
}: Readonly<{ params: { lang: Locale; id: string } }>) {
  const dictionary = await getDictionary(params.lang);
  const dic = dictionary['fundraiser']['donate'];
  const fundraiser = await prisma.fundraiser.findUnique({
    include: {
      fundraiser_media_fundraiser_media_fundraiser_idTofundraiser: true,
      User: true,
    },
    where: {
      fundraiserid: params.id,
    },
  });


The last Info I can give is that is happening only on the fundraiser directory and the donate & edit subdirectories. I'm attaching an image with this directory distribution, maybe I'm missing something there.

I hope someone can help me. Thanks

0 Replies