Hi,
I have tried to upgrade a small solution from React App (CRA). I have now reach the step, hvor det solution is prerendering - and it fails without any understandable (to me:) ) error. I have tried to understand in the following link, and i think everything is ok: Prerender Error with Next.js | Next.js
Can anyone help me in a direction - this is a error log:
Error occurred prerendering page “/_not-found”. Read more: Prerender Error with Next.js | Next.js
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with “use server”. Or maybe you meant to call this function rather than return it.
{keys: …, values: …, up: function l, down: …, between: …, only: …, not: …, unit: …}
^^^^^^^^^^
Export encountered an error on /_not-found/page: /_not-found, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
Thanks