René's URL Explorer Experiment


Title: fix(utils): Fix `loadModule` when using PnP by andreialecu · Pull Request #4077 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(utils): Fix `loadModule` when using PnP by andreialecu · Pull Request #4077 · getsentry/sentry-javascript

X Title: fix(utils): Fix `loadModule` when using PnP by andreialecu · Pull Request #4077 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: Fixes #4076 Uses createRequire to ensure that modules are correctly located and scoped to the main package that is running. See: https://nodejs.org/docs/latest/api/modules.html#modules_accessing_th...

X Description: Fixes #4076 Uses createRequire to ensure that modules are correctly located and scoped to the main package that is running. See: https://nodejs.org/docs/latest/api/modules.html#modules_accessing_th...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/4077

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e6b3420c-d97d-17c1-4d86-60de2caa918e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC24E:1FD1:13C24B1:1AB2742:6B0439DC
html-safe-noncee2f431c6bbd82f573c0bf8d6ac1e323e7f6066e20f3768159b4a327a03e5bd41
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjRFOjFGRDE6MTNDMjRCMToxQUIyNzQyOjZCMDQzOURDIiwidmlzaXRvcl9pZCI6Ijc2NDAzMjM0MjM1MDMzOTkzODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca7f79ff5a5636c30aa3ced8e56209173abda4574ee498bb25c3b7a1348a44520
hovercard-subject-tagpull_request:761306448
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/4077/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8abffc45785c24d38df1e47182111e634a876918e6ce8204c6fa2e63246e90ce/getsentry/sentry-javascript/pull/4077
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8abffc45785c24d38df1e47182111e634a876918e6ce8204c6fa2e63246e90ce/getsentry/sentry-javascript/pull/4077
og:image:altFixes #4076 Uses createRequire to ensure that modules are correctly located and scoped to the main package that is running. See: https://nodejs.org/docs/latest/api/modules.html#modules_accessing_th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandreialecu
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-cache
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
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/4077#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F4077
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%2Fpull%2F4077
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/4077
Reloadhttps://github.com/getsentry/sentry-javascript/pull/4077
Reloadhttps://github.com/getsentry/sentry-javascript/pull/4077
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)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
andreialecuhttps://github.com/andreialecu
getsentry:masterhttps://github.com/getsentry/sentry-javascript/tree/master
andreialecu:fix-loadmodule-pnphttps://github.com/andreialecu/sentry-javascript/tree/fix-loadmodule-pnp
Conversationhttps://github.com/getsentry/sentry-javascript/pull/4077
Commits3 (3)https://github.com/getsentry/sentry-javascript/pull/4077/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/4077/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/4077/files
fix(utils): Fix loadModule when using PnPhttps://github.com/getsentry/sentry-javascript/pull/4077#top
andreialecuhttps://github.com/andreialecu
getsentry:masterhttps://github.com/getsentry/sentry-javascript/tree/master
andreialecu:fix-loadmodule-pnphttps://github.com/andreialecu/sentry-javascript/tree/fix-loadmodule-pnp
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 19, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issue-1030156035
#4076https://github.com/getsentry/sentry-javascript/issues/4076
https://nodejs.org/docs/latest/api/modules.html#modules_accessing_the_main_modulehttps://nodejs.org/docs/latest/api/modules.html#modules_accessing_the_main_module
https://nodejs.org/api/module.html#module_module_createrequire_filenamehttps://nodejs.org/api/module.html#module_module_createrequire_filename
Contributinghttps://github.com/getsentry/sentry-javascript/blob/master/CONTRIBUTING.md
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 19, 2021 https://github.com/getsentry/sentry-javascript/pull/4077#ref-issue-1030046187
@sentry/tracing does not work with modern yarn (in PnP mode) #4076 https://github.com/getsentry/sentry-javascript/issues/4076
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/8f344d03d59d3db2ee605eaf152fe5bef9a39a54..7a0b28e7278caa95c0391a072d0cca602c7a569f
8f344d0https://github.com/getsentry/sentry-javascript/commit/8f344d03d59d3db2ee605eaf152fe5bef9a39a54
7a0b28ehttps://github.com/getsentry/sentry-javascript/commit/7a0b28e7278caa95c0391a072d0cca602c7a569f
Compare https://github.com/getsentry/sentry-javascript/compare/8f344d03d59d3db2ee605eaf152fe5bef9a39a54..7a0b28e7278caa95c0391a072d0cca602c7a569f
October 19, 2021 10:58https://github.com/getsentry/sentry-javascript/pull/4077#event-5484445856
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 19, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-946612976
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://yarnpkg.com/advanced/rulebook/#packages-should-only-ever-require-what-they-formally-list-in-their-dependencieshttps://yarnpkg.com/advanced/rulebook/#packages-should-only-ever-require-what-they-formally-list-in-their-dependencies
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
October 19, 2021 11:10https://github.com/getsentry/sentry-javascript/pull/4077#event-5484509669
https://github.com/andreialecu
fix(utils): Fix loadModule when using PnPhttps://github.com/getsentry/sentry-javascript/pull/4077/commits/1f49b46ea8929480c988ea22e3b1135afa49abf3
1f49b46https://github.com/getsentry/sentry-javascript/pull/4077/commits/1f49b46ea8929480c988ea22e3b1135afa49abf3
getsentry#4076https://github.com/getsentry/sentry-javascript/issues/4076
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/7a0b28e7278caa95c0391a072d0cca602c7a569f..1f49b46ea8929480c988ea22e3b1135afa49abf3
7a0b28ehttps://github.com/getsentry/sentry-javascript/commit/7a0b28e7278caa95c0391a072d0cca602c7a569f
1f49b46https://github.com/getsentry/sentry-javascript/commit/1f49b46ea8929480c988ea22e3b1135afa49abf3
Compare https://github.com/getsentry/sentry-javascript/compare/7a0b28e7278caa95c0391a072d0cca602c7a569f..1f49b46ea8929480c988ea22e3b1135afa49abf3
October 19, 2021 11:19https://github.com/getsentry/sentry-javascript/pull/4077#event-5484552322
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
October 19, 2021 11:36https://github.com/getsentry/sentry-javascript/pull/4077#event-5484643852
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 19, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-946644120
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 19, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-946653713
@kamilogorekhttps://github.com/kamilogorek
#3483https://github.com/getsentry/sentry-javascript/pull/3483
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
kamilogorekhttps://github.com/kamilogorek
October 20, 2021 15:11https://github.com/getsentry/sentry-javascript/pull/4077#event-5492670090
https://github.com/kamilogorek
kamilogorekhttps://github.com/kamilogorek
Oct 21, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-948515316
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 21, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-948555811
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/kamilogorek
kamilogorekhttps://github.com/kamilogorek
Oct 21, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-948660671
#2971https://github.com/getsentry/sentry-javascript/issues/2971
#2515https://github.com/getsentry/sentry-javascript/pull/2515
#3293https://github.com/getsentry/sentry-javascript/issues/3293
https://user-images.githubusercontent.com/1523305/138293815-180a3bf2-d96d-4ff6-b5aa-c41340c603e0.png
https://user-images.githubusercontent.com/1523305/138294385-0d46ff9c-b632-4d3a-ba90-4c7e61f8b49c.png
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 21, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-948663452
@kamilogorekhttps://github.com/kamilogorek
https://yarnpkg.com/advanced/rulebook/#modules-shouldnt-hardcode-node_modules-paths-to-access-other-moduleshttps://yarnpkg.com/advanced/rulebook/#modules-shouldnt-hardcode-node_modules-paths-to-access-other-modules
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/kamilogorek
kamilogorekhttps://github.com/kamilogorek
Oct 25, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-950876426
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
#4076https://github.com/getsentry/sentry-javascript/issues/4076
@lobsterkatiehttps://github.com/lobsterkatie
@AbhiPrasadhttps://github.com/AbhiPrasad
@iker-barriocanalhttps://github.com/iker-barriocanal
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/iker-barriocanal
iker-barriocanalhttps://github.com/iker-barriocanal
Oct 28, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-953647225
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 28, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-953648342
#4076https://github.com/getsentry/sentry-javascript/issues/4076
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
andreialecuhttps://github.com/andreialecu
October 28, 2021 12:02https://github.com/getsentry/sentry-javascript/pull/4077#commits-pushed-6110875
https://github.com/andreialecu
Merge branch 'master' into fix-loadmodule-pnphttps://github.com/getsentry/sentry-javascript/pull/4077/commits/6110875233fd56013a989c3695c1dc9f3259f000
6110875https://github.com/getsentry/sentry-javascript/pull/4077/commits/6110875233fd56013a989c3695c1dc9f3259f000
https://github.com/andreialecu
fixup! fix(utils): Fix loadModule when using PnPhttps://github.com/getsentry/sentry-javascript/pull/4077/commits/3f9ceabcce56a2b4de6f3f29a49dbd2a16a1cecd
3f9ceabhttps://github.com/getsentry/sentry-javascript/pull/4077/commits/3f9ceabcce56a2b4de6f3f29a49dbd2a16a1cecd
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
Oct 28, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-953654533
@iker-barriocanalhttps://github.com/iker-barriocanal
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/iker-barriocanal
iker-barriocanalhttps://github.com/iker-barriocanal
Oct 28, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-953787908
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/lobsterkatie
lobsterkatiehttps://github.com/lobsterkatie
Oct 28, 2021 https://github.com/getsentry/sentry-javascript/pull/4077#ref-issue-1038389420
Postgres Integration was unable to require pg package when using webpack #4099 https://github.com/getsentry/sentry-javascript/issues/4099
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 18, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-972817844
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Status: Stale https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
Nov 18, 2021https://github.com/getsentry/sentry-javascript/pull/4077#event-5638404451
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
Status: In Progress https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20In%20Progress%22
Status: Stale https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
Nov 18, 2021https://github.com/getsentry/sentry-javascript/pull/4077#event-5639238280
https://github.com/iker-barriocanal
iker-barriocanalhttps://github.com/iker-barriocanal
Nov 19, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-973906532
@AbhiPrasadhttps://github.com/AbhiPrasad
@lobsterkatiehttps://github.com/lobsterkatie
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
Nov 19, 2021https://github.com/getsentry/sentry-javascript/pull/4077#issuecomment-974067688
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/mattfysh
mattfyshhttps://github.com/mattfysh
Dec 27, 2021 https://github.com/getsentry/sentry-javascript/pull/4077#ref-pullrequest-1089194517
A holiday bundle! #4364 https://github.com/getsentry/sentry-javascript/pull/4364
https://github.com/kamilogorek
kamilogorekhttps://github.com/kamilogorek
March 2, 2022 20:34https://github.com/getsentry/sentry-javascript/pull/4077#event-6173736157
https://github.com/smeubank
smeubankhttps://github.com/smeubank
onurtemizkanhttps://github.com/onurtemizkan
timfishhttps://github.com/timfish
onurtemizkanhttps://github.com/onurtemizkan
Nov 23, 2022https://github.com/getsentry/sentry-javascript/pull/4077#event-7876207527
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
Jan 30, 2023https://github.com/getsentry/sentry-javascript/pull/4077#event-8386046149
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F4077
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/timfish
timfish https://github.com/timfish
@sentry/tracing does not work with modern yarn (in PnP mode) https://github.com/getsentry/sentry-javascript/issues/4076
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/4077
https://github.com/andreialecu
https://github.com/kamilogorek
https://github.com/iker-barriocanal
https://github.com/AbhiPrasad
https://github.com/timfish
https://github.com/onurtemizkan
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.