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

* @ant-design/icons/es/icons/createFromIconfontCN in ./node_modules/@ant-design/compatible/es/icon/index.js #166

Open
1029800858 opened this issue Jan 9, 2025 · 0 comments

Comments

@1029800858
Copy link

ant3升级至ant4时,运行项目报如下错误

`* @ant-design/icons/es/icons/createFromIconfontCN in ./node_modules/@ant-design/compatible/es/icon/index.js, ./node_modules/@ant-design/pro-layout/es/SiderMenu/BaseMenu.js

  • @ant-design/icons/es/icons/getTwoToneColor in ./node_modules/@ant-design/compatible/es/icon/index.js
  • @ant-design/icons/es/icons/setTwoToneColor in ./node_modules/@ant-design/compatible/es/icon/index.js

To install them, you can run: npm install --save @ant-design/icons/es/icons/createFromIconfontCN @ant-design/icons/es/icons/getTwoToneColor @ant-design/icons/es/icons/setTwoToneColor

ERROR in ./node_modules/@ant-design/compatible/es/icon/index.js
Module not found: Error: Can't resolve '@ant-design/icons/es/icons/createFromIconfontCN' in 'F:\EvMars\node_modules@ant-design\compatible\es\icon'
@ ./node_modules/@ant-design/compatible/es/icon/index.js 3:0-84 100:28-49
@ ./node_modules/@ant-design/compatible/es/index.js
@ ./src/pages/system/config/index.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./src/.umi/umi.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

1 participant