错误:引入时主要错误
//import {Icon} from 'antd'
Attempted import error: 'Icon' is not exported from 'antd'.
原因: antd 版本问题4.0不向下兼容 ,需要特定引入
解决:
import { Button } from 'antd';
import { Icon } from '@ant-design/compatible';
错误:
Module not found: Can't resolve '@ant-design/compatible'
解决:
npm add @ant-design/compatible