We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry Saas (sentry.io)
@sentry/vue
8.33.1
Vue 3.5.4
No response
import * as Sentry from '@sentry/vue'; import { Capacitor } from '@capacitor/core'; import type { App } from 'vue'; export default function setupSentry(app: App) { Sentry.init({ app, dsn: __SENTRY_DSN__, enabled: true, release: __APP_VERSION__, dist: __APP_VERSION__ + (Capacitor.isNativePlatform() ? '-native' : '-web'), transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport), transportOptions: { flushAtStartup: true, }, logErrors: true, tracesSampleRate: 0, autoSessionTracking: false, sendClientReports: false, }); }
After upgrading to 8.33.1 from 7.60.0 I am getting a TypeScript error
Sentry.init is valid TypeScript
Sentry.init
TypeScript Error: Object literal may only specify known properties, and 'flushAtStartup' does not exist in type 'Partial<BrowserTransportOptions>'.
Object literal may only specify known properties, and 'flushAtStartup' does not exist in type 'Partial<BrowserTransportOptions>'.
Current dirty workaround is to manually type transportOptions
transportOptions
import * as Sentry from '@sentry/vue'; import type { BrowserOfflineTransportOptions } from '@sentry/browser/build/npm/types/transports/offline'; import { Capacitor } from '@capacitor/core'; import type { App } from 'vue'; export default function setupSentry(app: App) { Sentry.init({ app, dsn: __SENTRY_DSN__, enabled: true, release: __APP_VERSION__, dist: __APP_VERSION__ + (Capacitor.isNativePlatform() ? '-native' : '-web'), transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport), transportOptions: { flushAtStartup: true, } as BrowserOfflineTransportOptions, logErrors: true, tracesSampleRate: 0, autoSessionTracking: false, sendClientReports: false, }); }
The text was updated successfully, but these errors were encountered:
Hey, this is a duplicate of #13548, please follow progress along there - thanks!
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
8.33.1
Framework Version
Vue 3.5.4
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
After upgrading to 8.33.1 from 7.60.0 I am getting a TypeScript error
Expected Result
Sentry.init
is valid TypeScriptActual Result
TypeScript Error:
Object literal may only specify known properties, and 'flushAtStartup' does not exist in type 'Partial<BrowserTransportOptions>'.
Current dirty workaround is to manually type
transportOptions
The text was updated successfully, but these errors were encountered: