Sujith1799 commented on issue #16709:
URL: https://github.com/apache/echarts/issues/16709#issuecomment-1346468653
@FibreFoX , when you implemented echarts in your repo, did you face any GC
heap out of memory error.
Im using NextJs and I keep getting out of memory error during the `next
build`. I have also tried increasing the node options to 5 gigs like this
`NODE_OPTIONS=\"--max_old_space_size=5120\"` but still no luck and even with
tree shakeable version I'm getting this error.
This is how I have implemented the echarts in my app
` const chartRef = React.useRef<HTMLDivElement>(null);
useEffect(() => {
const chart = init(chartRef.current!, 'light', {
renderer: 'svg',
});
/* istanbul ignore next */
function resizeChart() {
chart?.resize();
}
window.addEventListener('resize', resizeChart);
chart.setOption(option);
// Return cleanup function
return () => {
chart.dispose();
window.removeEventListener('resize', resizeChart);
};
}, [option]);
<div ref={chartRef}/>
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]