Title: Warning when console logging Vue ViewModel · Issue #8980 · getsentry/sentry-javascript · GitHub
Open Graph Title: Warning when console logging Vue ViewModel · Issue #8980 · getsentry/sentry-javascript
X Title: Warning when console logging Vue ViewModel · Issue #8980 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8980
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warning when console logging Vue ViewModel","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/vue\n\n### SDK Version\n\n7.68.0\n\n### Framework Version\n\n2.7.14\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```javascript\r\nSentry.init({\r\n Vue,\r\n dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',\r\n integrations: [\r\n new Sentry.BrowserTracing({}),\r\n new Sentry.Replay({\r\n maskAllText: false,\r\n maskAllInputs: false,\r\n blockAllMedia: false,\r\n }),\r\n ],\r\n tracesSampleRate: 1.0,\r\n replaysSessionSampleRate: 0.1,\r\n replaysOnErrorSampleRate: 1.0,\r\n});\r\n```\n\n### Steps to Reproduce\n\n1. Console logging a Vue instance (ViewModel) during the rendering process.\r\n> Reproduce the issue in this [codepen](https://codepen.io/duncan248/pen/jOXVzWO).\r\n\n\n### Expected Result\n\nNo warnings should appear.\n\n### Actual Result\n\nSome warnings appear.\r\n\r\n\r\n\r\n```\r\n(found in \u003cRoot>)\r\n(anonymous) @ instrument.ts:144\r\nwarn$2 @ vue.js:5108\r\nwarnNonPresent_1 @ vue.js:660\r\nhas @ vue.js:699\r\nisSyntheticEvent @ is.ts:153\r\nstringifyValue @ normalize.ts:218\r\nvisit @ normalize.ts:89\r\nnormalize @ normalize.ts:39\r\n(anonymous) @ handleScope.ts:95\r\nnormalizeConsoleBreadcrumb @ handleScope.ts:81\r\nhandleScope @ handleScope.ts:62\r\n(anonymous) @ handleScope.ts:26\r\n(anonymous) @ scope.ts:594\r\n_notifyScopeListeners @ scope.ts:593\r\nsetSpan @ scope.ts:287\r\nfinish @ idletransaction.ts:194\r\n(anonymous) @ idletransaction.ts:288\r\nsentryWrapped @ helpers.ts:98\r\nsetTimeout (async)\r\n(anonymous) @ trycatch.ts:122\r\n_restartIdleTimeout @ idletransaction.ts:285\r\n_popActivity @ idletransaction.ts:324\r\npopActivity @ idletransaction.ts:227\r\nspan.finish @ idletransaction.ts:50\r\n(anonymous) @ tracing.ts:44\r\nsentryWrapped @ helpers.ts:98\r\nsetTimeout (async)\r\n(anonymous) @ trycatch.ts:122\r\nfinishRootSpan @ tracing.ts:42\r\nmixins.\u003ccomputed> @ tracing.ts:124\r\ninvokeWithErrorHandling @ vue.js:3700\r\ncallHook$1 @ vue.js:3104\r\nmountComponent @ vue.js:2978\r\nVue.$mount @ vue.js:9311\r\nVue.$mount @ vue.js:11870\r\nVue._init @ vue.js:4724\r\nVue @ vue.js:5774\r\n(anonymous) @ origin.html:48\r\ninstrument.ts:144 [Vue warn]: Property or method \"preventDefault\" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.\r\n```","author":{"url":"https://github.com/Duncanxyz","@type":"Person","name":"Duncanxyz"},"datePublished":"2023-09-08T02:44:58Z","url":"https://github.com/getsentry/sentry-javascript/issues/8980"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7ef4f38a-9ed3-89cc-8263-9006f9f67230 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D56C:1C619:3AB305:5363C9:6B046F8B |
| html-safe-nonce | b37262b48f56d920891aa7782eb712b4bceaf323e7be332f2ef2824791c68ffc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTZDOjFDNjE5OjNBQjMwNTo1MzYzQzk6NkIwNDZGOEIiLCJ2aXNpdG9yX2lkIjoiNzYyMzAyODA5MjcxMzU5NDc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a8bd103e945c9b811afcc433074cf23bd0da6e027e9240af51fff585ef4363fd |
| hovercard-subject-tag | issue:1886847586 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/8980/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2a3ef116b02275a1017521c669c3d765c0b262d0c928408651c2569cc9ae8d1/getsentry/sentry-javascript/issues/8980 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2a3ef116b02275a1017521c669c3d765c0b262d0c928408651c2569cc9ae8d1/getsentry/sentry-javascript/issues/8980 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Duncanxyz |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width