Using Sentry in a React Universal application

I’m trying to use sentry in a universal react application, where the same code runs server side in Node, and client side in the browser. Unfortunately both raven-node and raven-js won’t work in the other environment.

Has anyone gotten this to work yet and if so, how?

@roderik – you need to conditionally include raven-node in Node environments, and Raven.js in React environments.

To make this easier, we’ve just released raven-node 1.0.0 which, among other things, has a near-identical API to raven-js.

1 Like