Skip to content

Late sentry initialization breaks HMR #17429

@daugvinasr

Description

@daugvinasr

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

10.5.0

Framework Version

Vue 10.5.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/daugvinasr/sentry-vue

Steps to Reproduce

  1. Make sure sentry init runs not on app launch. For example in my use case dsn config needs to be fetched.
  2. Have some state in the app
  3. Run sentry init
  4. Try to edit a vue component. HMR will cause full reload and loss of state

Expected Result

If I delete everything related to sentry HRM works with no problems. So expect sentry to not break HMR.

Actual Result

Sentry init breaks HMR causing full reload and loss of state

HBbhsyI1.mp4

Metadata

Metadata

Assignees

Labels

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions