You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry.init({
app,
dsn: import.meta.env.VITE_SENTRY_DSN_PUBLIC,
environment: import.meta.env.VITE_SENTRY_ENV,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
app.use(i18n) // Use the i18n plugin
.use(plugin)
.use(pinia)
.use(inertiaRoutesPlugin)
.component("InertiaHead", Head)
.component("InertiaLink", Link)
.mount(el);
},
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With version 7.x, the following initialisation worked: https://andrewrminion.com/2023/07/adding-sentry-to-a-laravel-inertia-vue-3-app/
But now, on v8.x it returns me following error:
Uncaught ReferenceError: Cannot access 'P' before initialization at types.js:3:16
Can someone help me to update to latest version of Sentry on this setup ?
Full code:
createInertiaApp({ title: (title) => ("test"), resolve: (name) => { const pages = import.meta.glob("./Pages/**/*.vue", { eager: true }); return pages[
./Pages/${name}.vue`];},
setup({ el, App, props, plugin }) {
const app = createApp({ render: () => h(App, props) });
const inertiaRoutesPlugin = useInertiaRoutes(props);
});`
Beta Was this translation helpful? Give feedback.
All reactions