getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
141 stars 36 forks source link

Cannot read properties of undefined (reading "silent") #501

Closed Tofandel closed 8 months ago

Tofandel commented 8 months ago

Error is happening on this line

https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/fe6169b73a8f5a95d9ac2c263ddb592756ec90f4/packages/bundler-plugin-core/src/index.ts#L76

Environment

When calling sentryVitePlugin() without any configuration option

lforst commented 8 months ago

Thanks for reporting! We'll improve this. It's technically not a bug because the type definitions tell you to pass something but it is nonetheless unnecessary having to pass an object.

lforst commented 8 months ago

Hi, we just released a "fix" for this in the latest release!