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
Hi. After making sure that you have installed the latest Sentry Vue package as indicated here, use the code below as imports and SDK init and try again.
import Vue from "vue";
import * as Sentry from "@sentry/browser";
import { Integrations } from "@sentry/tracing";
Sentry.init({
integrations: [
new Integrations.BrowserTracing(),
],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
Package + Version
@sentry/browser
@sentry/integrations
@sentry/tracing
Version:
Description
When doing one of the following:
import * as Sentry from '@sentry/browser'
import { Vue as VueIntegration } from '@sentry/integrations'
import { Integrations } from '@sentry/tracing'
I will get the following error in the browser:
I believe this is due to using require on line 650
var localForage = require('localforage');
while the rest of the places are usingimport/export
.Is there something I am doing wrong?
The text was updated successfully, but these errors were encountered: