Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error DX improvements #6866

Open
ClarkXia opened this issue Apr 19, 2024 · 0 comments
Open

Error DX improvements #6866

ClarkXia opened this issue Apr 19, 2024 · 0 comments
Labels

Comments

@ClarkXia
Copy link
Collaborator

Summary | 概述

No response

Motivation | 背景

The framework currently utilizes webpack-dev-server's default error overlay to display when errors occur. However, this default mechanism is often insufficient for diagnosing more complex issues, such as React hydration errors.
To enhance the development experience, the framework should implement an error diagnosis system that can identify specific types of errors and provide users with targeted suggestions for resolution.

Usage example | 使用示例

No response

Detailed design | 方案设计

Implement a custom, well-designed error overlay for the framework, potentially taking cues from solutions like react-error-overlay. Upon encountering an error, the framework should automatically perform an initial diagnosis, displaying both the error code and actionable suggestions for troubleshooting.
For complex issues, providing direct references to relevant documentation could greatly assist users in resolving their problems more efficiently.

Additional context | 额外信息

No response

@ClarkXia ClarkXia added the rfc label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant