Skip to main content
@interfere/vite captures browser errors and sessions from your React app. Its build plugin connects those events to a release and uploads source maps for readable stack traces. You need Vite 5 or later, React 19 or later, and Node.js 20 or later. For a server-rendered Start app, follow TanStack Start.

Setup

1

Install the packages

2

Set your keys

Copy the keys from your surface into the build environment:
Use production for production builds. Only the public key gets a VITE_ prefix. Prefixing the secret key would expose it in the browser bundle.
3

Connect your build

Enable source maps and add interfere() to your Vite plugins. Keep your other plugins and app configuration.
vite.config.ts
The plugin uploads source maps and registers the build’s release. See Releases and source maps for custom build environments.
4

Initialize and wrap your app

Call init() in your browser entry point, before React renders.
src/main.tsx
Set consent during initialization if capture must wait for a visitor’s choice. Review replay masking before recording customer sessions.

Verify capture

After initialization, report a test error from an existing button or event handler in your staging app:
Open your surface’s event chart to confirm that traffic arrives, then remove the test call.
The Vite browser SDK runs whenever it is initialized. To disable it during local development, use:

Next steps

User tracking, configure capture and environments, or report handled errors.