Skip to content

UMI 4.0.78 + @ant-design/icons 5.2.6 #11631

Answered by fz6m
KylinCai asked this question in Q&A
Sep 11, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

你给的这个项目没有在 package.json 安装 @ant-design/icons ,我安装后在 src/pages/edit.tsx 导入可以正常使用:

import React from 'react';
import styles from './edit.less';
import { DoubleLeftOutlined } from '@ant-design/icons'

export default function Page() {
  return (
    <div>
      <h1 className={styles.title}>Page edit</h1>
      <DoubleLeftOutlined />
    </div>
  );
}

如有问题,需要给一个可以复现报错的最小代码仓库。

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@fz6m
Comment options

fz6m Sep 11, 2023
Maintainer

@KylinCai
Comment options

@fz6m
Comment options

fz6m Sep 11, 2023
Maintainer

Answer selected by KylinCai
@KylinCai
Comment options

@notfound945
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants