yg.qu
yg.qu

Reputation: 1

when i use antd,there are some error in terminal

'@ant-design/icons' does not contain an export named 'LoadingOutlined'. in browser

"export 'LoadingOutlined' was not found in '@ant-design/icons' in terminal

Upvotes: 0

Views: 77

Answers (1)

Freddy.
Freddy.

Reputation: 1745

  1. npm install --save @ant-design/icons
  2. import { LoadingOutlined } from "@ant-design/icons"
  3. To use the icon in your component do this <LoadingOutlined />

Upvotes: 1

Related Questions