HomeToolsAbout a20k

async/await not supported in client

Error Message

Error: async/await is not yet supported in Client Components in next.js

Remedy

Remove the async keyword from the component definition

// from export default async function Component_Name() {} // to export default function Component_Name() {}

It is encouraged to locate all async or server-side operations to the API route or backend

© VincentVanKoh