alibaba / alibaba/lowcode-engine

Antd 高级组件demo添加`导航菜单`组件时报错

Open
#1,677 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**

如题

---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**

1. 打开这个页面 https://lowcode-engine.cn/demo/demo-basic-antd/index.html
2. 添加一个”导航菜单“组件

## **Screenshots (optional)** / **bug 截图(可选)**
![image](https://user-images.githubusercontent.com/26835087/223013176-bbf7c4a5-4f32-4783-8eac-cdb9e095777d.png)

### 报错信息
```
TypeError: (e || []).map is not a function
at i (useItems.tsx:19:10)
at useItems.tsx:30:118
at Array.map ()
at i (useItems.tsx:19:10)
at useItems.tsx:41:2
at Object.useMemo (react-dom.production.min.js:216:441)
at d.useMemo (react.production.min.js:32:231)
at hd (useItems.tsx:48:12)
at index.tsx:41:28
at we (react-dom.production.min.js:84:293)
```

### debug 信息
![image](https://user-images.githubusercontent.com/26835087/223013384-2f6f80d3-3b33-47f5-a558-7c4d605e8dbc.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the linked demo page and add the “Navigation Menu” component to reproduce the error. Start by reading the reported useItems.tsx and index.tsx stack frames, then trace the failing input. Done means the component renders in the demo without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.