Skip to content

bug: backend fails to start because src/utils/logger.js is missing #1032

Description

@Tomeshwari-02

Summary

The backend imports ./utils/logger.js, but that file is not present in the repository. This prevents the backend app from being imported or started.

Steps to reproduce

  1. Clone the repository.
  2. Run npm ci inside backend.
  3. Run:
node -e "import('./src/app.js').then(()=>console.log('ok')).catch(e=>{console.error(e.stack); process.exit(1)})"

Actual behavior

Node exits with:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../backend/src/utils/logger.js' imported from .../backend/src/app.js

Expected behavior

The backend should import successfully and start normally.

Relevant code

  • backend/src/app.js imports ./utils/logger.js.
  • backend/src/utils/envCheck.js also imports ./logger.js.
  • No backend/src/utils/logger.js file is tracked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions