raven-node icon indicating copy to clipboard operation
raven-node copied to clipboard

Support SSR for vue.js

Open smitt04 opened this issue 8 years ago • 1 comments

Not sure which library this should go under. But I use vue.js and raven-js for the client side errors. I also use raven for node to capture server errors. But I am also doing SSR rendering with the bundle renderer stream from https://www.npmjs.com/package/vue-server-renderer

Currently if there is an error on the stream i capture it using Raven.captureException(error) but it would be nice to get the same vue context that we get for browser in the ssr app.

smitt04 avatar Feb 23 '17 19:02 smitt04

This makes sense smitt04, https://github.com/getsentry/raven-js/blob/master/plugins/vue.js is the entire raven-js vue plugin and as you can see it's very simple - you should be able to accomplish something similar with raven-node's APIs as a quick individual solution to get componentName and propsData. I can think more about what that might look like, and @LewisJEllis should have a more concrete idea as well.

MaxBittker avatar Feb 23 '17 20:02 MaxBittker