Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server"
I get the error below in my Next js 13 project when i try to access a particluar route that has layout.js, loading.js and error.js
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server"
Admin
2023-08-30
The error is likely occurring because your 'error.js' file hasn't been designated as a client component. To resolve this issue, simply include the statement 'use client' at the top of your 'error.js' file
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.