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

Client-Only in Server Component

A module marked with the client-only package was imported inside a React Server Component. Modules that depend on browser APIs (DOM, window, localStorage) should only run on the client. Move the import into a component file that begins with the 'use client' directive, or wrap the usage in a Client Component.

References

In this namespace

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