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

🐛[BUG] Missing or outdated dependencies and React 19 issues #2809

Open
kirill-linnik opened this issue Dec 14, 2024 · 1 comment
Open

Comments

@kirill-linnik
Copy link

My package.json:

{
...
  "dependencies": {
...
    "antd": "5.22.4",
    "react": "19.0.0",
    "react-dom": "19.0.0",
...
  },
...
  "devDependencies": {
    "@ant-design/charts": "2.2.5",
    "@ant-design/icons": "5.5.2",
... 
 }
}

When I do yarn:

warning @ant-design/charts > @ant-design/graphs > @antv/g6 > hull.js@1.0.6: This package is no longer published on npmjs.com, you are using a deprecated and vulnerable version. Do not use it! Check project homepage on GitHub to see how to fetch the latest version: https://github.com/andriiheonia/hull?tab=readme-ov-file#npm-package
warning @ant-design/charts > @ant-design/plots > @antv/g2 > fmin > tape > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @ant-design/charts > @ant-design/plots > @antv/g2 > fmin > tape > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@ant-design/charts > @ant-design/graphs > @antv/g6-extension-react > @antv/react-g@2.0.30" has incorrect peer dependency "react@^16.13.1".
warning "@ant-design/charts > @ant-design/graphs > @antv/g6-extension-react > @antv/react-g > react-reconciler@0.26.2" has incorrect peer dependency "react@^17.0.2".
warning "@ant-design/charts > @ant-design/graphs > @antv/g6 > @antv/layout > @naoak/workerize-transferable@0.1.0" has unmet peer dependency "workerize-loader@*".

It used to be still OK with React 18.3.1, but after upgrading to the version 19.0.0 any page with a graph on it simply not working:

Error
A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.
@lxfu1
Copy link
Member

lxfu1 commented Dec 18, 2024

Are you interested in maintaining it together?

https://github.com/ant-design/ant-design-charts/blob/v2/packages/util/src/react/render.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants