Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
user72356 opened this issue Mar 4, 2024 · 2 comments
Open

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

user72356 opened this issue Mar 4, 2024 · 2 comments
Labels

Comments

@user72356
Copy link

user72356 commented Mar 4, 2024

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)

@EvgenyOrekhov
Copy link
Owner

I need to upgrade Putout, but there's some dependency conflicts.

@The-Code-Monkey
Copy link

I've also had it where the eslint config is trying to put usememos in my server functions which means I have to eslint disable lines for them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants