I use highchart so, the user can close and open the chart page and redraw the chart, in some case give me this error, how can I fix it, Thanks Here is my code
For me error was resolved when I placed the calling script after the HTML element.
Like;
Also if you check on high chart site it says:
This error occurs if the chart.renderTo option is misconfigured so that
Highcharts is unable to find the HTML element to render the chart in.
https://www.highcharts.com/errors/13