Issue with "use client" in next.js project
user72356 opened this issue · comments
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)
I need to upgrade Putout, but there's some dependency conflicts.
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
Waiting for coderaiser/putout#211