Next.js
Next.js invalid use server export value
Next.js detected a use server file exporting something other than async functions, which is invalid because Server Actions must be declared as async exports.
Next.js
Next.js detected a use server file exporting something other than async functions, which is invalid because Server Actions must be declared as async exports.
Observed message
Invalid "use server" Value
Why it happens
How to fix it
Official reference
Next.js Docs: Invalid use server valueRelated errors
Explore more