Skip to content

Issue with "use client" in next.js project #897

@user72356

Description

@user72356

The newer (> 13) versions of Next.js allow to render components on the server. Client-only components must add "use client"; at the top of the source code file.

This appears to be detected as the following errors:

Unused expression statement (remove-unused-expressions)eslint(putout/putout)
Avoid 'use strict' in ESM (strict-mode/remove-useless)eslint(putout/putout)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions