$ errors.fyi/nextjs/server-only-in-client-component 128 namespaces · 4,025 codes
nextjs · nextjs/server-only-in-client-component
server-only-in-client-component

Server-Only in Client Component

A module marked with the server-only package was imported inside a Client Component. Modules marked server-only contain logic that must not be bundled for the browser, such as database connections or secret environment variables. Move the import to a Server Component, a server action, or a Route Handler.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT