umi 引入全部 antd 组件报错 antd is not defined

antd 4.19.4 版本

// 这样没有问题
import {Button} from ‘antd’
console.log(Button)

// 这样就报错
import * as antd from ‘antd’
console.log(antd)

阅读 1.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题