Title: TypeError: withSentryConfig is not a function · Issue #5511 · getsentry/sentry-javascript · GitHub
Open Graph Title: TypeError: withSentryConfig is not a function · Issue #5511 · getsentry/sentry-javascript
X Title: TypeError: withSentryConfig is not a function · Issue #5511 · 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/5511
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: withSentryConfig is not a function","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.8.1\n\n### Framework Version\n\n\"react\": \"^17.0.2\", \"next\": \"^11.1.2\",\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\n1. add sentry to nextjs application.\r\nhttps://docs.sentry.io/platforms/javascript/guides/nextjs/\r\n2. update next.config.js \r\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/\r\n\r\nconst { withSentryConfig } = require('@sentry/nextjs');\r\n\r\nconst moduleExports = {\r\n // Your existing module.exports\r\n reactStrictMode: true,\r\n swcMinify: true,\r\n};\r\n\r\nconst sentryWebpackPluginOptions = {\r\n // Additional config options for the Sentry Webpack plugin. Keep in mind that\r\n // the following options are set automatically, and overriding them is not\r\n // recommended:\r\n // release, url, org, project, authToken, configFile, stripPrefix,\r\n // urlPrefix, include, ignore\r\n\r\n silent: true, // Suppresses all logs\r\n // For all available options, see:\r\n // https://github.com/getsentry/sentry-webpack-plugin#options.\r\n};\r\n\r\n// Make sure adding Sentry options is the last code to run before exporting, to\r\n// ensure that your source maps include changes from all other Webpack plugins\r\nmodule.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions);\r\n\r\n```\r\n3. run `yarn dev`\n\n### Expected Result\n\nApp should start\n\n### Actual Result\n\n`localhost:3001` shows the following error in chrome.\r\n\r\n\r\nTerminal does not show the error.\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/coreypett33","@type":"Person","name":"coreypett33"},"datePublished":"2022-08-02T12:52:24Z","url":"https://github.com/getsentry/sentry-javascript/issues/5511"}
| 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:13aed1af-9e92-a5d9-d2a9-e2094b1bbd3e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D62E:2CF9FD:20514E0:29F6ADD:6B05354B |
| html-safe-nonce | d43e76d9c9d5c2bdc1a208bd1a420c30703bb4620b9d5a6b543263d608124ccd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjJFOjJDRjlGRDoyMDUxNEUwOjI5RjZBREQ6NkIwNTM1NEIiLCJ2aXNpdG9yX2lkIjoiODU4Mzc0ODExODYwNzM3NzczOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eca9b135a8504283cbc5fe00eb1d6f2b7d17aac870e0f8c517202fcb6e05c2b6 |
| hovercard-subject-tag | issue:1325811773 |
| 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/5511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8afaf55ebb789ea9697b194662bf27a86ab75a8d19fff2ddaf0c9356c9323644/getsentry/sentry-javascript/issues/5511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8afaf55ebb789ea9697b194662bf27a86ab75a8d19fff2ddaf0c9356c9323644/getsentry/sentry-javascript/issues/5511 |
| 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 | coreypett33 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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