Add React Error Message Assistant package #35232
Open
+6,193
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a RAG-powered error message assistant as a new package in the React monorepo. The assistant intercepts Vite compilation errors during development and provides contextual solutions using a local knowledge base and configurable LLM providers.
Features:
The package is located at packages/react-error-assistant/ and includes:
All tests pass in both dev and production modes. Component extraction gracefully degrades in production Jest environments following React's standards.
Summary
This PR adds a RAG-powered error message assistant as a new package (
packages/react-error-assistant/) in the React monorepo. The assistant intercepts Vite compilation errors during development and provides contextual solutions using a local knowledge base and configurable LLM providers.**Motivation:
React/Vite developers often face cryptic error messages that lack context, requiring external searches (Stack Overflow, GitHub, docs) that take 10-15 minutes per error on average. This assistant provides:
**What it solves:
How did you test this change?
TypeScript Tests (42 tests, all passing):
yarn test packages/react-error-assistantProduction Tests (42 tests, all passing):
yarn test --prod packages/react-error-assistantType Checking:
Linting:
Code Formatting:
Manual Testing:
Test Coverage:
Screenshots:

