Flare by Spatie
    • Error Tracking
    • Performance Monitoring
    • Logging Coming soon
  • Pricing
  • Docs
  • Insights
  • Changelog
  • Back to Flare
  • Sign in
  • Try Flare for free
  • Error Tracking
  • Performance Monitoring
  • Logging Coming soon
  • Pricing
  • Docs
  • Insights
  • Changelog
    • Back to Flare
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript Protocol Protocol
  • General
  • Installation
  • Vanilla JavaScript
  • React
  • Vue
  • Resolving bundled code
  • Errors
  • Reporting errors
  • Client hooks
  • Data Collection
  • Adding custom context
  • Adding glows
  • Solution providers

Vanilla JavaScript

Use this guide when you want to install Flare directly in a plain JavaScript application without a framework-specific integration layer.

Laravel Mix is deprecated. We recommend Vite for new projects.

Sourcemaps

If your application is bundled for production, configure sourcemap uploads so Flare can show readable stack traces and code snippets. Start with the guide above for the common setup path, and use the resolving bundled code guide for advanced bundler configuration or manual upload options.

Troubleshooting

If you need more insight while setting things up, enable debug mode with flare.light('key', true) or by setting flare.debug = true before reporting an error.

Installation React
  • On this page
  • Sourcemaps
  • Troubleshooting

Catch errors and fix slowdowns with Flare, the full-stack application monitoring platform for Laravel, PHP & JavaScript.

  • Platform
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Support
  • Resources
  • Insights
  • Newsletter
  • Changelog
  • Documentation
  • Affiliate program
  • uptime status badge Service status
  • Terms of use
  • DPA
  • Privacy & cookie Policy
Made in by
Flare