question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency issue with antd v5.0.0

See original GitHub issue

Hello, 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:open
  • Created 10 months ago
  • Reactions:8
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lxfu1commented, Nov 24, 2022

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.

0reactions
letrapecommented, Dec 24, 2022

Hello Team

@ant-design/charts v1.4.2 still has the issue in compilation.

Failed to compile.

./node_modules/@ant-design/charts/node_modules/@antv/x6-react-components/es/color-picker/index.js
Module not found: Can't resolve 'antd/es/popover/style/index.css' in '<repo>/node_modules/@ant-design/charts/node_modules/@antv/x6-react-components/es/color-picker'

I have the same issue, any work around to use antd charts with antd 5, i dont want to downgrade to 4.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Log - Ant Design
5.0.2 · Fix Card radius style broken when customize bodyStyle background color. · Optimize default algorithm for error color. · Optimize the style...
Read more >
Keywords - antd - npm
An enterprise-class UI design language and React components implementation. Latest version: 5.0.7, last published: a day ago.
Read more >
Unable to resolve dependency tree error when installing npm ...
You have dependency conflict (incorrect and potentially broken dependency) as it says, so try to run the command with --force , or --legacy-peer ......
Read more >
@mui/base v5.0.0-alpha.111 Bundlephobia
These may be different from the dependencies' standalone sizes. Exports Analysis. GZIP sizes of individual exports. a.
Read more >
ui-antd-wrapper - npm Package Health Analysis - Snyk
Learn more about ui-antd-wrapper: package health score, popularity, security, ... ui-antd-wrapper. v5.0.0 ... No known security issues.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found