Skip to content

Rule to forbid component dot notation? #3860

Open
@FezVrasta

Description

Hi, with server components the component dot notation (Group.Foo) is not supported, it would be useful to have an eslint rule that forbids its usage to avoid issues like the one described here:

vercel/next.js#51593 (comment)

The React error is:

Cannot access .Foo on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions