Skip to content

Fix/docker frontend startup#8

Open
OmBharti999 wants to merge 4 commits intohyepartners-gmail:mainfrom
OmBharti999:fix/docker-frontend-startup
Open

Fix/docker frontend startup#8
OmBharti999 wants to merge 4 commits intohyepartners-gmail:mainfrom
OmBharti999:fix/docker-frontend-startup

Conversation

@OmBharti999
Copy link
Copy Markdown

@OmBharti999 OmBharti999 commented Mar 6, 2026

Fixes #7

Title

Fix frontend Docker setup and resolve ESM require error

Description

The frontend Docker build was failing due to multiple issues:

  • package.json and pnpm-lock.yaml were out of sync.
  • The Docker container startup command for the frontend did not correctly start both the Vite dev server and backend process.
  • The ffmpeg-frontend folder path was missing in the Docker configuration.
  • The project uses ES Modules, but some code still used require, which caused the error: ReferenceError: require is not defined in ES module scope.

Changes Made

  • Synced dependencies between package.json and pnpm-lock.yaml.
  • Fixed the frontend Docker startup command to properly run required services.
  • Added the missing ffmpeg-frontend folder path in Docker configuration.
  • Replaced require usage with ES module compatible imports.

Scope

This PR focuses on fixing the frontend Docker environment and module compatibility issues to ensure the container builds and runs successfully.

Testing

  • Rebuilt containers using:

    docker-compose build
    docker-compose up
  • Verified the frontend container starts correctly.

  • Confirmed the ESM require error no longer occurs.

Logs / Screenshots

Attached logs showing:

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend not starting in docker

1 participant