Yadiel 🇵🇷 @yadiel.dev · 19d

There's a confusing bug in Next.js with Server Functions that return a Client Component. The app builds fine, then it crashes at runtime with "Could not find the module … in the React Client Manifest."

0 likes 1 replies

?

Replies

Yadiel 🇵🇷 · 19d

Interestingly, it only happens when the client component calling the Server Function imports it directly, but if you pass the server function down as a prop from a Server Component or render the returned Client Component anywhere in the client tree first, it works.