-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Environment
SaaS (https://sentry.io/)
Version
7.28.1
Link
No response
DSN
No response
Steps to Reproduce
- Create a laravel inertia application
- Install inertia scaffolding with vue
- Install Sentry.io following this official guide
- run npm build
- Create a button that throws a test error.
- The error is thrown and logged in console. However no error is reported to sentry.
When I run npm build, this is the error that shows up in the console:
[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.
Update yourSentry.initcall with an appropriate config option:
app(Application Instance - Vue 3) orVue(Vue Constructor - Vue 2).
It works on local though, when I run "npm run dev". Errors are reported to sentry.
The code:
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => {
const page = resolvePageComponent(
`./Pages/${name}.vue`,
import.meta.glob('./Pages/**/*.vue')
);
return page;
},
setup({ el, app, props, plugin }) {
const vueApp = createApp({ render: () => h(app, props) }).use(plugin)
.mixin({ methods: { route } });
Sentry.init({
vueApp,
dsn: 'dsn',
integrations: [
new BrowserTracing({
tracePropagationTargets: [
'localhost',
'my-url.org',
/^\//,
],
}),
],
tracesSampleRate: 1,
logErrors: true,
});
vueApp.mount(el);
return vueApp;
},
});
Expected Result
Seeing the error on Sentry.io after pressing the button.
Actual Result
This warning in the console:
[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.
Update yourSentry.initcall with an appropriate config option:
app(Application Instance - Vue 3) orVue(Vue Constructor - Vue 2).
Errors do not get sent to sentry.
Metadata
Metadata
Assignees
Labels
Projects
Status