npm library for catching JavaScript errors is available for that.
For a new front-end integration, start with AppSignal for
Browser, the newer package that is currently in beta. It captures
uncaught errors, breadcrumbs, and Core Web Vitals without plugins or
configuration, and reports to the Browser section of your application.
@appsignal/javascript keeps working, but new features only land in
@appsignal/browser. To move an existing app across, follow the migration
guide.Supported browsers
This package can be used in any ECMAScript 5 compatible browser. We aim for compatibility down to Internet Explorer 9 (roughly 0.22% of all browsers used today). All browsers older than this can only supported on a “best effort” basis, and full functionality cannot be guaranteed. When developing, don’t forget to check browser support on Can I Use? and the ES6 Compatibility Table, and provide the appropriate polyfills or fallbacks. In a small percentage of browsers, aPromise polyfill may be required to use this library.
Other supported environments
@appsignal/javascript is more than just a front-end library! It’s also designed to work in a variety of other JavaScript runtimes and use-cases where the @appsignal/nodejs library may not be a viable choice. @appsignal/javascript supports: