-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
Warning when console logging Vue ViewModel #8980
Comments
Hi @Duncanxyz thanks for writing in and for opening a PR! I already left a review in #8981 but I have one more general question: Since you already took a look at the code, can you explain why this warning appears? Is it because adding the console log breadcrumb accesses certain properties within Furthermore, is this only problematic in Vue 2 or is it still a problem in Vue 3? |
Hi @Lms24 , thank you for your review! You're correct in your understanding of the warning's cause. In Vue 2, there is a proxy during the rendering process. I apologize for not considering the differences with Vue 3 earlier. I will further investigate and update the PR in the next couple of days. Thank you once again for your prompt response. Sentry is crucial to our project! |
Prevent stringifying VueViewModel objects which causes a warning when the object is logged to console. Instead, normalize it's string value to `"[VueViewModel]"` More details in #8980
Thanks for contributing a fix @Duncanxyz. It has been released in |
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
7.68.0
Framework Version
2.7.14
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Expected Result
No warnings should appear.
Actual Result
Some warnings appear.
The text was updated successfully, but these errors were encountered: