A lightweight runtime error overlay plugin for Vite that displays runtime errors in-browser (like the Vite dev error overlay but for runtime) and optionally reports them to your backend for logging or auto-fix. Current stable version 1.1.44, released regularly. Ships TypeScript types. Peer dependencies: react >=17.0.0, react-dom >=17.0.0, vite >=5.0.0 <8.0.0. Differentiator: combines runtime error display with optional backend reporting, unlike Vite's built-in compile-time overlay.
npm install vite-joylo-runtime-overlayVerified import paths — ran on the pinned version, not inferred.
Configures the plugin in Vite with optional backend reporting URL and auto-fix disabled.
Place runtimeErrorOverlay() first in the plugins array.
Use 'https://example.com/report' or ''.
Replace 'autoFix: true' with 'autoFixEndpoint: 'https://example.com/autofix'.
Ensure errors are thrown inside React component lifecycle or use a custom error boundary.
Use import instead of require(). If using CommonJS, stay on v1.0.x or use dynamic import().
Set reportUrl to a string or check environment variable is defined.
Run 'npm install -D vite-joylo-runtime-overlay' and verify package.json.
Change to 'import runtimeErrorOverlay from 'vite-joylo-runtime-overlay''.
Use 'import runtimeErrorOverlay from ...' (without curly braces).