-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ChartID] Cannot read properties of undefined (reading 'node') #602
Comments
We have the same issue, we can also confirm that this bug got introduced in 3.49.1, the previous version didn't have this issue. |
This happens randomly when we clone a clean repo and make a yarn install, sometimes it works sometimes not, but always is this library in the same version 1.4.1 |
Had the same issue, with 3.49.0 works fine. |
Same issue here. Strange though, I had two different (identical) instances of my app running in dev mode on the same machine; one was rendering correctly and one was throwing the error mentioned above -- and then I closed the browser on the working instance and re-opened it, and it started failing also. Never could get either of them working again until I downgraded to 3.49.0, after which they started rendering properly. |
Can anyone create a codesandbox to reproduce this issue? I cannot reproduce it locally with |
I'm not certain the behavior is completely consistent, so take this all with a grain of salt.
import { ApexOptions } from "apexcharts";
import Chart from "react-apexcharts";
const ChartsComponent = () => {
const barChartSeries = [
{
data: [10, 20, 70],
},
];
const barChartOptions: ApexOptions = {
chart: {
// id: "basic-bar",
},
xaxis: {
categories: ["A", "B", "C"],
},
};
const donutChartSeries = [10, 20, 70];
const donutChartOptions: ApexOptions = {
chart: {
// id: "donut-chart",
type: "donut",
},
labels: ["Series A", "Series B", "Series C"],
responsive: [{
breakpoint: 480,
options: {
chart: {
width: 300,
},
},
}],
};
return (
<div>
<Chart options={barChartOptions} series={barChartSeries} type="bar" width="320" />
<Chart options={donutChartOptions} series={donutChartSeries} type="donut" width="320" />
</div>
);
};
export default ChartsComponent;
Stay with me now... 😁 it's gonna get bumpy!
Now, the whole page crashes again.
Update: I probably should have narrowed this down earlier, but it appears that the |
Hi,
When I set id for chart:
The text was updated successfully, but these errors were encountered: