Skip to content

ReferenceError: seedAppData is not defined during startupΒ #26140

@sayem314

Description

@sayem314

When deploying Cal.com using the Docker image (calcom/cal.com:latest), the container successfully runs database migrations but fails at the final step of the seeding process. The script /calcom/scripts/seed-app-store.ts throws a ReferenceError because it attempts to access seedAppData, which appears to be undefined in the scope of the script execution.

Expected behavior

The seed-app-store.ts script should complete without errors, ensuring all default apps and credentials (like mock payment apps or Google calendar configurations) are correctly populated in the database before the Next.js server starts.

Actual behavior

The script fails with the following stack trace:

calcom-web  | ReferenceError: seedAppData is not defined
calcom-web  |     at /calcom/scripts/seed-app-store.ts:258:5
calcom-web  |     at processTicksAndRejections (node:internal/process/task_queues:95:5)

Although the server eventually starts, the app store state may be inconsistent.

Environment Information

  • Docker Image: calcom/cal.com:latest (as of 2025-12-23)
  • Deployment: Docker Compose
  • Database: PostgreSQL 15-alpine

Steps to Reproduce

Deploy Cal.com using the standard docker-compose.yml pulling from Docker Hub.

Provide necessary .env variables (DATABASE_URL, NEXTAUTH_SECRET, etc.).

Observe logs during the npx ts-node /calcom/scripts/seed-app-store.ts phase.

Relevant Logs

calcom-web  | + npx ts-node --transpile-only /calcom/scripts/seed-app-store.ts
calcom-web  | πŸ“² Updated app: 'apple-calendar'
... [truncated successful updates] ...
calcom-web  | πŸ“² Updated app: 'zoom'
calcom-web  | ReferenceError: seedAppData is not defined
calcom-web  |     at /calcom/scripts/seed-app-store.ts:258:5
calcom-web  |     at processTicksAndRejections (node:internal/process/task_queues:95:5)
calcom-web  | + yarn start

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