Skip to content

build(frontend): Docker build fails due to outdated Node version and strict ESLint/TypeScript errors #5

@chinmayy777

Description

@chinmayy777

When a new contributor attempts to spin up the local environment using the official docker-compose up --build command, the build fails at the frontend stage.

Root Causes:

  1. apps/frontend/Dockerfile is hardcoded to node:18-alpine, which is incompatible with updated dependencies (like @tailwindcss/oxide which expects >= 20).

  2. Next.js production build fails due to strict ESLint and TypeScript compiler errors in the _home directory (unused variables and implicit any types).

Expected behavior:

The docker-compose command should successfully build both the frontend and backend containers without crashing.

Proposed Solution:

I have fixed these issues locally by bumping the Dockerfile Node version to 20 and patching the strict type errors. I will submit a PR linking to this issue shortly to unblock future contributors.

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