Skip to content

[Docs]: Officially recommended cookies.server.ts file naming throwing a Vite Build Error -- change docs #12886

Open
@churbis

Description

@churbis

Describe what's incorrect/missing in the documentation

The official docs say to keep the cookies in a cookies.server.ts here.

However, sometimes the vite build process flips out (for reasons I don't fully understand) and throws a [vite] Internal server error: Server-only module referenced by client when you have a <modulename>.server import in a route with a default export of a component (the component can be empty).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions