Title: TypeError: Cannot read properties of undefined (reading 'cliBinaryExists') · Issue #8576 · getsentry/sentry-javascript · GitHub
Open Graph Title: TypeError: Cannot read properties of undefined (reading 'cliBinaryExists') · Issue #8576 · getsentry/sentry-javascript
X Title: TypeError: Cannot read properties of undefined (reading 'cliBinaryExists') · Issue #8576 · 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/8576
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: Cannot read properties of undefined (reading 'cliBinaryExists')","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\nSelf-hosted/on-premise\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n13.4.9\n\n### Framework Version\n\n18.2.0\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```js\r\nSentry.init({\r\n dsn: SentryDsn,\r\n environment: process.env.NEXT_PUBLIC_ENVIRONMENT,\r\n integrations: [new CaptureConsole({ levels: ['assert', 'error', 'warn'] })],\r\n release: process.env.NEXT_PUBLIC_RELEASE,\r\n sendDefaultPii: true,\r\n tracesSampleRate: 0.1,\r\n});\r\n```\n\n### Steps to Reproduce\n\n\u003cimg width=\"700\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/327717/85a7fb61-e38c-4c5e-b2f1-533226f35555\">\r\n\r\nI use `import { withSentryConfig } from '@sentry/nextjs';`\r\n\r\nand \r\n\r\n```js\r\nconst nextConfig = {\r\n reactStrictMode: true,\r\n // Disable sentry plugin\r\n // https://github.com/getsentry/sentry-javascript/blob/115b0f3c07efa755c8f90d32cfd1783a35451eba/packages/nextjs/src/config/webpack.ts#L82-84\r\n sentry: {\r\n disableClientWebpackPlugin: true,\r\n disableServerWebpackPlugin: true,\r\n },\r\n```\r\n`next build`\n\n### Expected Result\n\nNo errors\n\n### Actual Result\n\nDuring build\r\n\r\n```\r\nyarn run build\r\n- warn No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache\r\n- info Linting and checking validity of types...\r\n- warn The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config\r\n- info Creating an optimized production build...\r\n> Build error occurred\r\nTypeError: Cannot read properties of undefined (reading 'cliBinaryExists')\r\n at shouldEnableWebpackPlugin (/builds/project/.yarn/__virtual__/@sentry-nextjs-virtual-8ab386e88f/4/build-cache/yarn/cache/@sentry-nextjs-npm-7.59.2-4ce32cadc9-10c0.zip/node_modules/@sentry/nextjs/cjs/config/webpack.js:764:28)\r\n at Object.newWebpackFunction [as webpack] (/builds/project/.yarn/__virtual__/@sentry-nextjs-virtual-8ab386e88f/4/build-cache/yarn/cache/@sentry-nextjs-npm-7.59.2-4ce32cadc9-10c0.zip/node_modules/@sentry/nextjs/cjs/config/webpack.js:285:9)\r\n at getBaseWebpackConfig (/builds/project/.yarn/__virtual__/next-virtual-598703b69f/4/build-cache/yarn/cache/next-npm-13.4.9-5c37513773-10c0.zip/node_modules/next/dist/build/webpack-config.js:2152:32)\r\n at async Promise.all (index 1)\r\n at async Span.traceAsyncFn (/builds/project/.yarn/__virtual__/next-virtual-598703b69f/4/build-cache/yarn/cache/next-npm-13.4.9-5c37513773-10c0.zip/node_modules/next/dist/trace/trace.js:103:20)\r\n at async webpackBuildImpl (/builds/project/.yarn/__virtual__/next-virtual-598703b69f/4/build-cache/yarn/cache/next-npm-13.4.9-5c37513773-10c0.zip/node_modules/next/dist/build/webpack-build/impl.js:133:21)\r\n at async webpackBuild (/builds/project/.yarn/__virtual__/next-virtual-598703b69f/4/build-cache/yarn/cache/next-npm-13.4.9-5c37513773-10c0.zip/node_modules/next/dist/build/webpack-build/index.js:137:16)\r\n at async /builds/project/.yarn/__virtual__/next-virtual-598703b69f/4/build-cache/yarn/cache/next-npm-13.4.9-5c37513773-10c0.zip/node_modules/next/dist/build/index.js:584:123\r\n at async Span.traceAsyncFn (/builds/project/.yarn/__virtual__/next-virtual-598703b69f/4/build-cache/yarn/cache/next-npm-13.4.9-5c37513773-10c0.zip/node_modules/next/dist/trace/trace.js:103:20)\r\n at async build (/builds/project/.yarn/__virtual__/next-virtual-598703b69f/4/build-cache/yarn/cache/next-npm-13.4.9-5c37513773-10c0.zip/node_modules/next/dist/build/index.js:145:29)\r\n```","author":{"url":"https://github.com/simPod","@type":"Person","name":"simPod"},"datePublished":"2023-07-18T10:27:52Z","url":"https://github.com/getsentry/sentry-javascript/issues/8576"}
| 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:d7a94273-3ff6-d146-7508-4de786446129 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE72:33B36B:1A3C51:22D176:6B04CC5D |
| html-safe-nonce | ff9feb279f1906715cfcffc03a77674a1e7a74477a9c8fb99aaba8207243f72c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTcyOjMzQjM2QjoxQTNDNTE6MjJEMTc2OjZCMDRDQzVEIiwidmlzaXRvcl9pZCI6IjQwOTQwNDY5MTUyMTIzOTc2NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 827d8341509015bb69ada15f3eb7af8d410513a92f05f067d9990c124de1d7fa |
| hovercard-subject-tag | issue:1809646574 |
| 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/8576/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6056f9d592becfb499f2fb880563046dd3bda3abfa9edf2b29a75998ec3efdfe/getsentry/sentry-javascript/issues/8576 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6056f9d592becfb499f2fb880563046dd3bda3abfa9edf2b29a75998ec3efdfe/getsentry/sentry-javascript/issues/8576 |
| 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 | simPod |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| 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 | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| 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