You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
通过npx create-react-app xxx 创建的react新项目
根据formily步骤分别引入
npm install --save @formily/core
npm install --save @formily/react
以及出错的
npm install --save antd moment @formily/antd
引入antd这一步中出现
------------------------------------------↓error code↓-----------------------------------------------
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@">=16.0.0" from @ant-design/[email protected]
npm ERR! node_modules/@ant-design/icons
npm ERR! @ant-design/icons@"^4.7.0" from [email protected]
npm ERR! node_modules/antd
npm ERR! antd@"^4.22.8" from the root project
npm ERR! 1 more (@formily/antd)
npm ERR! peer @ant-design/icons@"4.x" from @formily/[email protected]
npm ERR! node_modules/@formily/antd
npm ERR! node_modules/@formily/antd/node_modules/react-sticky-box
npm ERR! react-sticky-box@"^0.9.3" from @formily/[email protected]
npm ERR! node_modules/@formily/antd
npm ERR! @formily/antd@"*" 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.
----------------------------------------↑error code↑-----------------------------------------------
即使根据提示将antd版本控制在<=4.22.8扔报同样的错
有没有相同经历的大佬可以伸出援手为我指点迷津
Beta Was this translation helpful? Give feedback.
All reactions