My chart doesn't display correctly #5532
-
Hello, I'm facing an issue where my chart does not display, and I receive errors in the console when trying to render it. The error I'm seeing is: Failed to get source map: [Error: Unknown url scheme] { code: 'GenericFailure' } I’ve even rebuilt a project from scratch, but nothing seems to work. I’ve tried running the project on both my local PC and a GitHub Codespace, but the results are the same — the chart doesn’t display. However, the surrounding card renders fine. Here’s an example of the code I’m using: <CardFooter>
<ChartContainer config={chartConfig} className="min-h-[200px] w-full">
<BarChart accessibilityLayer data={chartData}>
<Bar dataKey="desktop" fill="var(--color-desktop)" radius={4} />
<Bar dataKey="mobile" fill="var(--color-mobile)" radius={4} />
</BarChart>
</ChartContainer>
</CardFooter> I've double-checked my chartConfig and chartData, and everything seems to be correct, but the chart still doesn't show up. Do you have any ideas or suggestions on how to resolve this issue? I'm on NextJS 15, and as written in the documentation, I use recharts@alpha Thank you in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Same issue, Have you found a solution? |
Beta Was this translation helpful? Give feedback.
-
I have a samedi problème |
Beta Was this translation helpful? Give feedback.
https://ui.shadcn.com/docs/react-19#recharts