alibaba / alibaba/lowcode-engine
Antd 高级组件demo添加`导航菜单`组件时报错
- 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 截图(可选)**

### 报错信息
```
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 信息

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