Title: Uncaught ReferenceError: require is not defined with Vue 3 · Issue #3091 · getsentry/sentry-javascript · GitHub
Open Graph Title: Uncaught ReferenceError: require is not defined with Vue 3 · Issue #3091 · getsentry/sentry-javascript
X Title: Uncaught ReferenceError: require is not defined with Vue 3 · Issue #3091 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3091
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uncaught ReferenceError: require is not defined with Vue 3","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [ ] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/browser`\r\n- [x] `@sentry/integrations`\r\n- [x] `@sentry/tracing`\r\n\r\n### Version:\r\n\r\n```\r\n5.28.0\r\n```\r\n\r\n## Description\r\n\r\nWhen doing one of the following:\r\n\r\n`import * as Sentry from '@sentry/browser'`\r\n`import { Vue as VueIntegration } from '@sentry/integrations'`\r\n`import { Integrations } from '@sentry/tracing'`\r\n\r\nI will get the following error in the browser:\r\n\r\n```\r\nUncaught ReferenceError: require is not defined\r\n \u003canonymous> http://localhost:3000/@modules/@sentry/integrations.js:650\r\n\r\n\u003canonymous> http://localhost:3000/@modules/@sentry/integrations.js:650\r\n InnerModuleEvaluation self-hosted:2346\r\n InnerModuleEvaluation self-hosted:2346\r\n evaluation self-hosted:2317\r\n```\r\n\r\nI believe this is due to using require on line 650 `var localForage = require('localforage');` while the rest of the places are using `import/export`.\r\n\r\nIs there something I am doing wrong?\r\n","author":{"url":"https://github.com/karanagarwal17","@type":"Person","name":"karanagarwal17"},"datePublished":"2020-12-02T06:41:58Z","url":"https://github.com/getsentry/sentry-javascript/issues/3091"}
| 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:36729828-036b-51c6-89c5-a15f3536cfe3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB8A:1C6B40:3E4B5:5239E:6B042FD2 |
| html-safe-nonce | 0756dbf4be455b0df21c4ed91c26f2410e0e369a38f2159887f7ba20310f4a3d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjhBOjFDNkI0MDozRTRCNTo1MjM5RTo2QjA0MkZEMiIsInZpc2l0b3JfaWQiOiIzNDA5NzE0ODY4MTA5MTkzMTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 14f1be7226144040282361b5931b45dc4622a92f42ea98aed5d69f6b10d0a103 |
| hovercard-subject-tag | issue:754993945 |
| 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/3091/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37fab9b6377d98d3fe15c9b33b138e87cc743c6a6965c2242e0c89c48bfa520c/getsentry/sentry-javascript/issues/3091 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37fab9b6377d98d3fe15c9b33b138e87cc743c6a6965c2242e0c89c48bfa520c/getsentry/sentry-javascript/issues/3091 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karanagarwal17 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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