Failed to compile.
./pages/index.tsx:120:37
Type error: Property 'rev' is missing in type '{}' but required in type 'Pick<AntdIconProps, "default" | "id" | "data" | "title" | "colSpan" | "rowSpan" | "width" | "key" | "className" | "children" | "href" | "as" | "onMouseEnter" | "onTouchStart" | ... 349 more ... | "twoToneColor">'.
118 | }}
119 | >
> 120 | <Menu.Item key="0" icon={<HomeOutlined />}>
| ^
121 | 首页
122 | </Menu.Item>
123 | <Menu.Item key="1" icon={<SearchOutlined />}>
info Visit
https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
<Menu
theme="dark"
mode="inline"
defaultSelectedKeys={["0"]}
onClick={({ key }) => {
setShowHome(key === "" || key === "0");
setShowabc(key === "2");
setShowabcd(key === "3");
setShowSearch(key === "1");
setShowabcde(key === "4");
setShowAwsblogcn(key === "5");
}}
items={[
{
key: "0",
icon: <HomeOutlined />,
label: "首页",
},
{
key: "1",
icon: <SearchOutlined />,
label: "搜索",
},
{
key: "2",
icon: <AppleOutlined />,
label: "abc",
},
{
key: "3",
icon: <TwitterOutlined />,
label: "abc",
},
{
key: "4",
icon: <AppleOutlined />,
label: "abc",
},
{
key: "5",
icon: <TwitterOutlined />,
label: "abc",
},
]}
></Menu>