Skip to content

Merge default options when using manual initialization in @sentry/vue #3936

Closed
@micopiira

Description

@micopiira

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/vue

Version:

6.11.0

Description

Following the documentation for Vue 3 Manual initializition gives error

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at __values (tslib.es6.js:196)
    at Object.createTracingMixins (tracing.js:94)

Manually passing the hooks option to createTracingMixins seems to get rid of the error so I guess the default options are not getting merged to the passed options correctly?

Codesandbox reproduction here: https://codesandbox.io/s/pensive-tereshkova-nfn7x

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: vueIssues related to the Sentry Vue SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions