Skip to content

Conversation

@josephsavona
Copy link
Member

@josephsavona josephsavona commented Jul 9, 2025

In playground it's helpful to show all errors, even those that don't completely abort compilation. For example, to help demonstrate that the compiler catches things like setState in effects. This detects these errors and ensures we show them.

@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jul 9, 2025
@josephsavona josephsavona requested a review from mofeiZ July 9, 2025 00:10
logEvent: () => {},
logEvent: (_filename: string | null, event: LoggerEvent) => {
if (event.kind === 'CompileError') {
error.details.push(new CompilerErrorDetail(event.detail));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhh good catch. i really want to overhaul the error reporting system to avoid this by design

In playground it's helpful to show all errors, even those that don't completely abort compilation. For example, to help demonstrate that the compiler catches things like setState in effects. This detects these errors and ensures we show them.
@josephsavona josephsavona merged commit ec4374c into main Jul 9, 2025
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants