Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Oct 20, 2025

Summary

add hint message for 'React is not defined' error
before:
image

after:
image

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings October 20, 2025 08:33
@netlify
Copy link

netlify bot commented Oct 20, 2025

👷 Deploy Preview for rstest-dev processing.

Name Link
🔨 Latest commit cfed0c0
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68f5f7de23f2cb00088930df

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a helpful hint message for "React is not defined" errors to improve the developer experience by suggesting installation of the @rsbuild/plugin-react plugin.

  • Extracted error hint logic into a reusable function
  • Added specific hint for React undefined errors suggesting the @rsbuild/plugin-react plugin
  • Maintained existing hints for global APIs and jest/vitest variables

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@9aoy 9aoy merged commit 98bdbb8 into main Oct 20, 2025
15 of 19 checks passed
@9aoy 9aoy deleted the react-is-not-defined-error branch October 20, 2025 09:57
@9aoy 9aoy mentioned this pull request Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants