_ echarts.init is not a function what is the problem?

const echarts = require ("echarts-gl");

      const KnowledgeOPs = echarts.init(document.getElementById("containerKG"));
      _echarts.init is not a function 
Mar.28,2021

const echarts = require ('echarts');
require (' echarts-gl');
const KnowledgeOPs = echarts.init (document.getElementById ('containerKG'));
) so that you won't make a mistake

Menu