Skip to content
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

AreaCharts still broken with React 19 #7555

Closed
1 of 2 tasks
sradu opened this issue Mar 4, 2025 · 2 comments
Closed
1 of 2 tasks

AreaCharts still broken with React 19 #7555

sradu opened this issue Mar 4, 2025 · 2 comments
Labels
Duplicate A duplicate of other issue

Comments

@sradu
Copy link

sradu commented Mar 4, 2025

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.17.1

What package has an issue?

@mantine/charts

What framework do you use?

Next.js

In which browsers you can reproduce the issue?

All

Describe the bug

There was a previous issue about AreaCharts not showing the area gradient in React 19, and I'm having a similar problem.

I can just have the standard demo example and it's just dots:

  return (
    <AreaChart
      h={300}
      data={wtf}
      dataKey="date"
      series={[
        { name: 'Apples', color: 'indigo.6' },
        { name: 'Oranges', color: 'blue.6' },
        { name: 'Tomatoes', color: 'teal.6' },
      ]}
      curveType="natural"
    />
  );
Image

I noticed that you upgraded a resolution to react-is to 19, but my npm ls says:

❯ npm ls react-is
xxx@ /Users/xxx/Work/xxx
└─┬ [email protected] -> ./notebook-fe
  ├─┬ @sentry/[email protected]
  │ └─┬ [email protected]
  │   └── [email protected]
  ├─┬ [email protected]
  │ └─┬ [email protected]
  │   └── [email protected] deduped
  ├─┬ [email protected]
  │ └─┬ @jest/[email protected]
  │   └─┬ [email protected]
  │     └── [email protected]
  └─┬ [email protected]
    └── [email protected]

I'm not sure how to fix this yet, but I'm assuming there's something somewhere bad happening.

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@sradu
Copy link
Author

sradu commented Mar 4, 2025

Update: adding "react-is": "^19.0.0" to my resolutions fixed the issue. But it should work out of the box perhaps?

@rtivital
Copy link
Member

rtivital commented Mar 5, 2025

Duplicate of #7220

@rtivital rtivital marked this as a duplicate of #7220 Mar 5, 2025
@rtivital rtivital closed this as completed Mar 5, 2025
@rtivital rtivital added the Duplicate A duplicate of other issue label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate A duplicate of other issue
Projects
None yet
Development

No branches or pull requests

2 participants