Dependency issue with antd v5.0.0
See original GitHub issueHello, just found this issue while upgrading my project with the new v5.0.0 released today.
npm ERR! Found: antd@5.0.0 npm ERR! node_modules/antd npm ERR! antd@"^5.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer antd@"^4.6.3" from @ant-design/charts@1.4.2 npm ERR! node_modules/@ant-design/charts npm ERR! @ant-design/charts@"^1.4.2" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
As suggests by NPM, we can able to continue installation with
--legacy-peer-deps
but I guess a fix is necessary to able to do not have strange issue and strange behaviour at all.
Thanks, appreciate it.
Issue Analytics
- State:
- Created 10 months ago
- Reactions:8
- Comments:6 (1 by maintainers)
Top GitHub Comments
It will be supported in the near future. If the flowchart is not used, you can use sub packages to pass it first,like:
@ant-design/plots
@ant-design/graphs
.I have the same issue, any work around to use antd charts with antd 5, i dont want to downgrade to 4.6