Skip to content

TanStack Start + Authkit template: iron-session cookie error breaks page rendering #222

@tgeorgiadis

Description

@tgeorgiadis

Steps to Reproduce

  1. Create a new project with npm create convex@latest and select TanStack Start and AuthKit
  2. Run npm install and npm run dev
  3. Set up WorkOS env values
  4. Open http://localhost:3000 in your browser
  5. Check browser console for the error

Expected Behavior

The page should render correctly with <Authenticated> and <Unauthenticated> components conditionally displaying their children based on auth state.

Actual Behavior

Browser console shows SyntaxError for the iron-session cookie module.

Uncaught (in promise) SyntaxError: The requested module '/node_modules/iron-session/node_modules/cookie/index.js?v=54184f55' does not provide an export named 'parse' (at index.js?v=54184f55:1:21)

Content inside <Authenticated> and <Unauthenticated> does not render. Page appears broken/blank

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions