alibaba / alibaba/ice

ice3 使用国际化i18n, 重启开发服务,嵌套路由丢失

Open
#7,085 1 comment 0 reactions 0 assignees View on GitHub
rfc
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Summary | 概述

如题

### Motivation | 背景

使用嵌套路由,如图

![Image](https://github.com/user-attachments/assets/686fe3ce-b42a-49bf-a25d-a3d803f6dc64)

启用国际化,重启开发服务,访问/testPage/testHome 404

![Image](https://github.com/user-attachments/assets/20e3821a-056b-4b9d-afa6-3a2df8094e24)

不使用国际化就正常了,或者,在testPage 文件夹中随便新建或者删除另外一个文件就有可以渲染了

### Usage example | 使用示例

_No response_

### Detailed design | 方案设计

### Additional context | 额外信息

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the nested-route setup shown in the issue with internationalization enabled, restart the development service, and request /testPage/testHome. Compare it with the non-i18n case and with the state after creating or deleting a file in testPage; done means the nested route renders after restart without requiring a file change.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.