79500707

Date: 2025-03-11 12:20:37
Score: 2.5
Natty:
Report link

Old thread, but stumbled upon this when having a similar problem, hoping someone in the future may see this aswell:

I just had the error: Error: Renderer 'undefined' is not imported. Please import it first.

The Problem at the end was, that i was using

import * as echarts from 'echarts';

but also

import { EChartsOption, SeriesOption } from 'echarts';

The second line was throwing everything off. So use the "namespace" echarts and dont import anything other than * as echarts.

Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): having a similar problem
  • Low reputation (0.5):
Posted by: Endunry