René's URL Explorer Experiment


Title: require('@grpc/grpc-js') returns undefined when using sentry configs on next-js app · Issue #6970 · getsentry/sentry-javascript · GitHub

Open Graph Title: require('@grpc/grpc-js') returns undefined when using sentry configs on next-js app · Issue #6970 · getsentry/sentry-javascript

X Title: require('@grpc/grpc-js') returns undefined when using sentry configs on next-js app · Issue #6970 · 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/6970

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"require('@grpc/grpc-js') returns undefined when using sentry configs on next-js app","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 package are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n7.34.0\n\n### Framework Version\n\nNext 12.0.4\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```\r\n// This file sets a custom webpack configuration to use your Next.js app\r\n// with Sentry.\r\n// https://nextjs.org/docs/api-reference/next.config.js/introduction\r\n// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/\r\nconst { withSentryConfig } = require('@sentry/nextjs');\r\n\r\n/** @type {import('next').NextConfig} */\r\nconst nextConfig = {\r\n\twebpackDevMiddleware: (config) => {\r\n\t\tconfig.watchOptions = {\r\n\t\t\tpoll: 1000,\r\n\t\t\taggregateTimeout: 300,\r\n\t\t};\r\n\t\treturn config;\r\n\t},\r\n\treactStrictMode: true,\r\n\tenv: {\r\n\t\tREACT_APP_DISABLE_WARNINGS: 1,\r\n\t},\r\n\tfuture: {\r\n\t\twebpack5: true, // by default, if you customize webpack config, they switch back to version 4.\r\n\t\t// Looks like backward compatibility approach.\r\n\t},\r\n\twebpack(config) {\r\n\t\tconfig.resolve.fallback = {\r\n\t\t\t...config.resolve.fallback, // if you miss it, all the other options in fallback, specified\r\n\t\t\t// by next.js will be dropped. Doesn't make much sense, but how it is\r\n\t\t\tfs: false, // the solution\r\n\t\t};\r\n\r\n\t\treturn config;\r\n\t},\r\n};\r\n\r\nconst sentryWebpackPluginOptions = {\r\n\t// Additional config options for the Sentry Webpack plugin. Keep in mind that\r\n\t// the following options are set automatically, and overriding them is not\r\n\t// recommended:\r\n\t//   release, url, org, project, authToken, configFile, stripPrefix,\r\n\t//   urlPrefix, include, ignore\r\n\r\n\tsilent: true, // Suppresses all logs\r\n\thideSourcemaps: true,\r\n\t// For all available options, see:\r\n\t// https://github.com/getsentry/sentry-webpack-plugin#options.\r\n};\r\n\r\nmodule.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);\r\n```\r\n\n\n### Steps to Reproduce\n\nI'm trying to import @grpc/grpc-js inside an API call. When I changed the next.config.js as I shared, require('@grpc/grpc-js') returns undefined.\n\n### Expected Result\n\nImporting grpc package without problem\n\n### Actual Result\n\n`\r\nTypeError: Cannot read properties of undefined (reading 'loadPackageDefinition')\r\n  4 |   const grpc = require('@grpc/grpc-js');\r\n  5 |   const pkgDefs = importProto('proto/goquake.proto');\r\n> 6 |   const goQuakeProto = grpc.loadPackageDefinition(pkgDefs).GoQuake;\r\n`","author":{"url":"https://github.com/geoport","@type":"Person","name":"geoport"},"datePublished":"2023-01-30T08:50:54Z","url":"https://github.com/getsentry/sentry-javascript/issues/6970"}

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:13df9f38-bb58-8726-98b2-d5d7a1bc5cc4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D76:279C41:760622:A6DE8C:6B0480CF
html-safe-nonce0ffed8e7ab05e6b2fa3cbd3841c533de6a0f4557cc842d2abef7c9999bf79584
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDc2OjI3OUM0MTo3NjA2MjI6QTZERThDOjZCMDQ4MENGIiwidmlzaXRvcl9pZCI6IjcwNjY5MTEzOTc5MDA0ODQ4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace416c84af7e7a933a7bc9676ff31e54dcedbde3fc95049959baeb0b227d1f3f7
hovercard-subject-tagissue:1561995599
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/6970/issue_layout
twitter:imagehttps://opengraph.githubassets.com/19a4dec7be10942c83995f2426de44500ce5bb58034534aa95749a23883cc926/getsentry/sentry-javascript/issues/6970
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/19a4dec7be10942c83995f2426de44500ce5bb58034534aa95749a23883cc926/getsentry/sentry-javascript/issues/6970
og:image:altIs 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegeoport
hostnamegithub.com
expected-hostnamegithub.com
None0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511
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
releaseed3f2e01f6b7672780c586c8af0e72726374d7b6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/6970#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F6970
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%2F6970
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/6970
Reloadhttps://github.com/getsentry/sentry-javascript/issues/6970
Reloadhttps://github.com/getsentry/sentry-javascript/issues/6970
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests53 (53)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/6970
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/6970
#6979https://github.com/getsentry/sentry-javascript/pull/6979
require('@grpc/grpc-js') returns undefined when using sentry configs on next-js apphttps://github.com/getsentry/sentry-javascript/issues/6970#top
#6979https://github.com/getsentry/sentry-javascript/pull/6979
https://github.com/geoport
geoporthttps://github.com/geoport
on Jan 30, 2023https://github.com/getsentry/sentry-javascript/issues/6970#issue-1561995599
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
geoporthttps://github.com/geoport
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Jan 30, 2023https://github.com/getsentry/sentry-javascript/issues/6970#event-8385552730
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Jan 30, 2023https://github.com/getsentry/sentry-javascript/issues/6970#event-8385553016
HazAThttps://github.com/HazAT
Package: Nextjshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20Nextjs%22
on Jan 30, 2023https://github.com/getsentry/sentry-javascript/issues/6970#event-8386340055
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Jan 30, 2023https://github.com/getsentry/sentry-javascript/issues/6970#event-8386340458
https://github.com/joshuajaco
joshuajacohttps://github.com/joshuajaco
on Jan 30, 2023https://github.com/getsentry/sentry-javascript/issues/6970#issuecomment-1408597484
#6943https://github.com/getsentry/sentry-javascript/issues/6943
lforsthttps://github.com/lforst
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6979https://github.com/getsentry/sentry-javascript/pull/6979
on Jan 31, 2023https://github.com/getsentry/sentry-javascript/issues/6970#event-8397850640
https://github.com/lforst
lforsthttps://github.com/lforst
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/6970#issuecomment-1412075573
https://github.com/getsentry/sentry-javascript/releases/tag/7.35.0https://github.com/getsentry/sentry-javascript/releases/tag/7.35.0
https://github.com/geoport
geoporthttps://github.com/geoport
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/6970#issuecomment-1412078627
https://aka.ms/AAb9ysghttps://aka.ms/AAb9ysg
…https://github.com/getsentry/sentry-javascript/issues/6970
#6970https://github.com/getsentry/sentry-javascript/issues/6970
https://github.com/getsentry/sentry-javascript/releases/tag/7.35.0https://github.com/getsentry/sentry-javascript/releases/tag/7.35.0
#6970 (comment)https://github.com/getsentry/sentry-javascript/issues/6970#issuecomment-1412075573
https://github.com/notifications/unsubscribe-auth/AXLNG2PX74JN76PXSM347VDWVJRS3ANCNFSM6AAAAAAUK3WPEYhttps://github.com/notifications/unsubscribe-auth/AXLNG2PX74JN76PXSM347VDWVJRS3ANCNFSM6AAAAAAUK3WPEY
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/6970
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/6970
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.