bug: Price chart crashes — addCandlestickSeries is not a function #23

Closed
opened 2026-03-16 02:29:56 +00:00 by Brouie · 6 comments
Brouie commented 2026-03-16 02:29:56 +00:00 (Migrated from gitlab.com)

Description

Charts page loads data correctly but the candlestick chart fails to render. The lightweight-charts API call addCandlestickSeries is not a function.

Error

PriceChart.tsx:64 Uncaught TypeError: chart.addCandlestickSeries is not a function

Expected

Candlestick chart should render with OHLC data from the indexer.

Notes

All other chart page elements work: 24h stats, pair selector, recent trades, leaderboard, TWAP oracle. Only the candlestick chart component is broken. Likely a lightweight-charts version mismatch — newer versions use chart.addSeries(CandlestickSeries) instead of chart.addCandlestickSeries().

Environment

  • Indexer: running on port 3002
  • Frontend: Vite 7.3.1
## Description Charts page loads data correctly but the candlestick chart fails to render. The lightweight-charts API call addCandlestickSeries is not a function. ## Error `PriceChart.tsx:64 Uncaught TypeError: chart.addCandlestickSeries is not a function` ## Expected Candlestick chart should render with OHLC data from the indexer. ## Notes All other chart page elements work: 24h stats, pair selector, recent trades, leaderboard, TWAP oracle. Only the candlestick chart component is broken. Likely a lightweight-charts version mismatch — newer versions use chart.addSeries(CandlestickSeries) instead of chart.addCandlestickSeries(). ## Environment - Indexer: running on port 3002 - Frontend: Vite 7.3.1
Brouie commented 2026-03-16 02:37:11 +00:00 (Migrated from gitlab.com)

mentioned in issue #18

mentioned in issue #18
Brouie commented 2026-03-16 05:39:28 +00:00 (Migrated from gitlab.com)

mentioned in commit 41641aa6c6

mentioned in commit 41641aa6c65867fe31449087f02e87f3c51ed7fe
Brouie commented 2026-03-16 05:39:42 +00:00 (Migrated from gitlab.com)

mentioned in merge request !724

mentioned in merge request !724
PlasticDigits commented 2026-03-16 07:24:56 +00:00 (Migrated from gitlab.com)

mentioned in commit fd2ee80148

mentioned in commit fd2ee801486cb027b88630a7eabc34c86bd1f930
PlasticDigits commented 2026-03-16 07:33:33 +00:00 (Migrated from gitlab.com)

@Brouie Please verify fix.

@Brouie Please verify fix.
Brouie (Migrated from gitlab.com) closed this issue 2026-03-17 03:36:07 +00:00
Brouie commented 2026-03-17 03:39:11 +00:00 (Migrated from gitlab.com)

Verified fixed — candlestick chart renders correctly after addSeries(CandlestickSeries) fix for lightweight-charts v5. Tested on JADE/TOPAZ 5m interval.

Verified fixed — candlestick chart renders correctly after addSeries(CandlestickSeries) fix for lightweight-charts v5. Tested on JADE/TOPAZ 5m interval.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic#23
No description provided.