antvis / antvis/L7

Windows下本地启动项目访问example页面空白,无数据展示

Open
#2,038 3 comments 3 reactions 0 assignees View on GitHub
🌟 star good first issue
Dominant language
TypeScript
Stars
4.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

Windows下运行yarn start启动项目后访问example路径会报TypeError,尝试将packages\site\.dumi\pages\Example\utils.ts下第四行
改为 return exmapleItem?.title 加?后类型错误消失但页面仍空白。
经过测试,mac环境下启动项目访问example路径只会报warning,页面有内容展示

### 重现链接

_No response_

### 重现步骤

1. Windows下本地运行yarn start启动项目
2. 点击顶部导航栏-图表演示
3. 内容页面显示空白,无数据展示,仅有左侧目录

### 预期行为

我期望看到和mac系统本地启动项目访问example路径一样的显示内容
实际上右侧内容页为空白

### 平台

- 操作系统: Windows
- 网页浏览器: Google Chrome/Firefox

### 屏幕截图或视频(可选)

![image](https://github.com/antvis/L7/assets/73650835/b075bdcf-359a-46be-8c72-a30741580aa0)
![image](https://github.com/antvis/L7/assets/73650835/bf495c09-1b3d-4413-8f73-19732e211d79)

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with packages/site/.dumi/pages/Example/utils.ts, especially the fourth line mentioned in the report, then reproduce the issue on Windows with yarn start and the 图表演示/example page. Compare the Windows behavior with macOS and use the existing screenshots and reported TypeError as reference. Done means the example page displays its data on Windows without the TypeError or a blank content area.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, 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.