Beta build fails: AnalyticsSession wrong relative imports #47

Closed
opened 2026-07-28 04:19:30 -07:00 by westfarn · 0 comments
Owner

Problem

Beta deploy (npm run build:beta) fails on all webservers with:

Module not found: Error: Can't resolve '../contexts/AccountContext' in
'.../llm-fe/src/llm-fe/components/AnalyticsSession'

That leaves /var/www/beta.chat.aimloperations/html empty, so https://beta.hesychia.ai/ returns nginx 403.

Cause

AnalyticsSession.tsx lives under components/AnalyticsSession/, so imports need ../../contexts/... and ../../utils/... (same as Header, AnalyticsConsentBanner, Tracker). It incorrectly used a single ../.

Fix

Correct the four relative imports in AnalyticsSession.tsx, then re-run beta deploy.

## Problem Beta deploy (`npm run build:beta`) fails on all webservers with: ``` Module not found: Error: Can't resolve '../contexts/AccountContext' in '.../llm-fe/src/llm-fe/components/AnalyticsSession' ``` That leaves `/var/www/beta.chat.aimloperations/html` empty, so `https://beta.hesychia.ai/` returns nginx **403**. ## Cause `AnalyticsSession.tsx` lives under `components/AnalyticsSession/`, so imports need `../../contexts/...` and `../../utils/...` (same as `Header`, `AnalyticsConsentBanner`, `Tracker`). It incorrectly used a single `../`. ## Fix Correct the four relative imports in `AnalyticsSession.tsx`, then re-run beta deploy.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#47