René's URL Explorer Experiment


Title: "mod.require is not a function" Error after upgrading from 5.23.0 to >=5.24.0 · Issue #2971 · getsentry/sentry-javascript · GitHub

Open Graph Title: "mod.require is not a function" Error after upgrading from 5.23.0 to >=5.24.0 · Issue #2971 · getsentry/sentry-javascript

X Title: "mod.require is not a function" Error after upgrading from 5.23.0 to >=5.24.0 · Issue #2971 · 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/2971

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"mod.require is not a function\" Error after upgrading from 5.23.0 to >=5.24.0 ","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- [ ] `@sentry/browser`\r\n- [x] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\n>=5.24.0\r\n```\r\n\r\n## Description\r\n\r\nHello, we use Sentry for our Serverless applications which use NestJS and the [nest-raven](https://github.com/mentos1386/nest-raven) library that implements an interceptor to catch the errors and report them to Sentry.io and everything is bundled using Webpack. After we upgraded from `5.23.0` to the last version `5.26.0` we noticed that when an exception happens we receive an Internal Server Error and the original Exception is not reported to Sentry.io because it is the Sentry library that is having problems. The backend logs we have are:\r\n\r\n```\r\n  | 2020-10-13T14:51:20.131-04:00 | TypeError: mod.require is not a function\r\n-- | -- | --\r\n  | 2020-10-13T14:51:20.131-04:00 | at dynamicRequire (/var/task/src/adapters/graphql/handler.js:79802:16)\r\n  | 2020-10-13T14:51:20.131-04:00 | at /var/task/src/adapters/graphql/handler.js:79860:39\r\n  | 2020-10-13T14:51:20.131-04:00 | at Array.forEach (\u003canonymous>)\r\n  | 2020-10-13T14:51:20.131-04:00 | at extractNodeRequestData (/var/task/src/adapters/graphql/handler.js:79845:10)\r\n  | 2020-10-13T14:51:20.131-04:00 | at Module.parseRequest (/var/task/src/adapters/graphql/handler.js:131937:61)\r\n  | 2020-10-13T14:51:20.131-04:00 | at RavenInterceptor.captureGraphQLException (/var/task/src/adapters/graphql/handler.js:645524:42)\r\n  | 2020-10-13T14:51:20.131-04:00 | at Sentry.withScope (/var/task/src/adapters/graphql/handler.js:645514:45)\r\n  | 2020-10-13T14:51:20.131-04:00 | at Hub.withScope (/var/task/src/adapters/graphql/handler.js:654823:13)\r\n  | 2020-10-13T14:51:20.131-04:00 | at callOnHub (/var/task/src/adapters/graphql/handler.js:13438:28)\r\n  | 2020-10-13T14:51:20.131-04:00 | at Module.withScope (/var/task/src/adapters/graphql/handler.js:13572:5)\r\n```\r\nAfter analyzing the bundle we noticed that the it happens in the `dynamicRequire` function specifically when it's called from [packages/utils/src/node.ts line 93](https://github.com/getsentry/sentry-javascript/blob/master/packages/utils/src/node.ts#L93) which was introduced in version `5.24.0`.\r\n\r\nChecking the stacktrace it happens when `Handlers.parseRequests` is called from the Nest-Raven [library we use](https://github.com/mentos1386/nest-raven/blob/v6.0.0-alpha.2/lib/raven.interceptor.ts#L75)\r\n\r\nSo far the workaround is to keep using `@sentry/node@5.23.0` where the error does not happen.","author":{"url":"https://github.com/sergio-dreamcode","@type":"Person","name":"sergio-dreamcode"},"datePublished":"2020-10-13T19:56:20Z","url":"https://github.com/getsentry/sentry-javascript/issues/2971"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f8a1ba9e-64a6-9445-f776-3385c233b20f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA46C:125D11:10B050:16533B:6B042DA9
html-safe-noncec2e8056f7aedcc3d9dc4ec853d2a4c00a2f7719e163d97c6404a8af2311e33a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDZDOjEyNUQxMToxMEIwNTA6MTY1MzNCOjZCMDQyREE5IiwidmlzaXRvcl9pZCI6IjgzMTU1MDY5NTgzMzc4NDY2OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc6fb76aeb28e33b6d46710b384ef30794f6cadd879bd50abfad2fe5f3baedaca
hovercard-subject-tagissue:720753673
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/2971/issue_layout
twitter:imagehttps://opengraph.githubassets.com/beb894c53d2b85fa757de027aa9725f89464d9402c74ee6f1ee9c2e443dc4696/getsentry/sentry-javascript/issues/2971
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/beb894c53d2b85fa757de027aa9725f89464d9402c74ee6f1ee9c2e443dc4696/getsentry/sentry-javascript/issues/2971
og:image:altReview 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesergio-dreamcode
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/2971#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F2971
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F2971
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/2971
Reloadhttps://github.com/getsentry/sentry-javascript/issues/2971
Reloadhttps://github.com/getsentry/sentry-javascript/issues/2971
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues341 (341)https://github.com/getsentry/sentry-javascript/issues
Pull requests57 (57)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/2971
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/2971
#3210https://github.com/getsentry/sentry-javascript/pull/3210
"mod.require is not a function" Error after upgrading from 5.23.0 to >=5.24.0 https://github.com/getsentry/sentry-javascript/issues/2971#top
#3210https://github.com/getsentry/sentry-javascript/pull/3210
https://github.com/sergio-dreamcode
sergio-dreamcodehttps://github.com/sergio-dreamcode
on Oct 13, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issue-720753673
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
nest-ravenhttps://github.com/mentos1386/nest-raven
packages/utils/src/node.ts line 93https://github.com/getsentry/sentry-javascript/blob/master/packages/utils/src/node.ts#L93
library we usehttps://github.com/mentos1386/nest-raven/blob/v6.0.0-alpha.2/lib/raven.interceptor.ts#L75
sergio-dreamcodehttps://github.com/sergio-dreamcode
Status: Needs Triagehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Triage%22
on Oct 13, 2020https://github.com/getsentry/sentry-javascript/issues/2971#event-3873266441
rodolfoBeehttps://github.com/rodolfoBee
Status: Needs Reproductionhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Reproduction%22
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
Status: Needs Triagehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Triage%22
on Oct 15, 2020https://github.com/getsentry/sentry-javascript/issues/2971#event-3880604529
https://github.com/rodolfoBee
rodolfoBeehttps://github.com/rodolfoBee
on Oct 15, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-709054810
@sergio-dreamcodehttps://github.com/sergio-dreamcode
https://github.com/kamilchlebek
kamilchlebekhttps://github.com/kamilchlebek
on Oct 16, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-709852760
@rbisolhttps://github.com/rbisol
https://github.com/kamilchlebek/sentry-express-demohttps://github.com/kamilchlebek/sentry-express-demo
#2515https://github.com/getsentry/sentry-javascript/pull/2515
https://github.com/sergio-dreamcode
sergio-dreamcodehttps://github.com/sergio-dreamcode
on Oct 19, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-712264536
@kamilchlebekhttps://github.com/kamilchlebek
#2515https://github.com/getsentry/sentry-javascript/pull/2515
#2820https://github.com/getsentry/sentry-javascript/pull/2820
https://github.com/ybrodsky
ybrodskyhttps://github.com/ybrodsky
on Nov 2, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-720689423
@sergio-dreamcodehttps://github.com/sergio-dreamcode
#2515https://github.com/getsentry/sentry-javascript/pull/2515
#2820https://github.com/getsentry/sentry-javascript/pull/2820
https://github.com/sergio-dreamcode
sergio-dreamcodehttps://github.com/sergio-dreamcode
on Nov 3, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-721109581
#2515https://github.com/getsentry/sentry-javascript/pull/2515
#2820https://github.com/getsentry/sentry-javascript/pull/2820
@ybrodskyhttps://github.com/ybrodsky
#2515https://github.com/getsentry/sentry-javascript/pull/2515
#2524https://github.com/getsentry/sentry-javascript/pull/2524
#2820https://github.com/getsentry/sentry-javascript/pull/2820
https://github.com/ch1ller0
ch1ller0https://github.com/ch1ller0
on Nov 25, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-733656855
https://github.com/dvins
dvinshttps://github.com/dvins
on Dec 17, 2020https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-747647182
@rbisolhttps://github.com/rbisol
https://github.com/RatkoR
RatkoRhttps://github.com/RatkoR
on Jan 4, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-754188386
getsentry/sentry-electron#92 (comment)https://github.com/getsentry/sentry-electron/issues/92#issuecomment-453534680
https://github.com/RatkoR
RatkoRhttps://github.com/RatkoR
on Jan 5, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-754531600
https://angular.io/guide/universalhttps://angular.io/guide/universal
@sentry/nodehttps://docs.sentry.io/platforms/node/guides/express/
https://github.com/sergio-dreamcode
sergio-dreamcodehttps://github.com/sergio-dreamcode
on Jan 5, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-754644479
@rbisolhttps://github.com/rbisol
@kamilchlebekhttps://github.com/kamilchlebek
https://github.com/dvins
dvinshttps://github.com/dvins
on Jan 5, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-754863968
@rbisolhttps://github.com/rbisol
rodolfoBeehttps://github.com/rodolfoBee
Status: Needs Reproductionhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Reproduction%22
on Jan 13, 2021https://github.com/getsentry/sentry-javascript/issues/2971#event-4200583981
https://github.com/mihanizm56
mihanizm56https://github.com/mihanizm56
on Jan 25, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-766898493
https://github.com/mihanizm56
mihanizm56https://github.com/mihanizm56
on Jan 25, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-766929596
lobsterkatiehttps://github.com/lobsterkatie
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3210https://github.com/getsentry/sentry-javascript/pull/3210
on Jan 29, 2021https://github.com/getsentry/sentry-javascript/issues/2971#event-4268338330
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
on Jan 29, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-770094134
#3210https://github.com/getsentry/sentry-javascript/pull/3210
lobsterkatiehttps://github.com/lobsterkatie
Status: Fixedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Fixed%22
on Jan 29, 2021https://github.com/getsentry/sentry-javascript/issues/2971#event-4268364688
https://github.com/mihanizm56
mihanizm56https://github.com/mihanizm56
on Jan 31, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-770304771
https://user-images.githubusercontent.com/37120827/106371495-1e441080-6376-11eb-9e7f-08e57415c0be.png
https://user-images.githubusercontent.com/37120827/106371507-3d42a280-6376-11eb-8fb3-3233425104eb.png
https://github.com/RatkoR
RatkoRhttps://github.com/RatkoR
on Jan 31, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-770353836
#3210https://github.com/getsentry/sentry-javascript/pull/3210
6.0.3https://github.com/getsentry/sentry-javascript/releases/tag/6.0.3
https://github.com/kamilogorek
kamilogorekhttps://github.com/kamilogorek
on Feb 1, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-771065113
https://github.com/sergio-dreamcode
sergio-dreamcodehttps://github.com/sergio-dreamcode
on Feb 27, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-786959895
@kamilchlebekhttps://github.com/kamilchlebek
postgres.tshttps://github.com/getsentry/sentry-javascript/blob/master/packages/tracing/src/integrations/postgres.ts
https://github.com/kamilchlebek
kamilchlebekhttps://github.com/kamilchlebek
on Feb 27, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-787090428
@sergio-dreamcodehttps://github.com/sergio-dreamcode
@kamilogorekhttps://github.com/kamilogorek
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
on Mar 1, 2021https://github.com/getsentry/sentry-javascript/issues/2971#issuecomment-788123970
@sergio-dreamcodehttps://github.com/sergio-dreamcode
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/2971
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/2971
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.