Title: Can't install @sentry/nextjs in next 11 project · Issue #3700 · getsentry/sentry-javascript · GitHub
Open Graph Title: Can't install @sentry/nextjs in next 11 project · Issue #3700 · getsentry/sentry-javascript
X Title: Can't install @sentry/nextjs in next 11 project · Issue #3700 · 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 ...
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/3700
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't install @sentry/nextjs in next 11 project","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@sentry/nextjs\r\n```\r\n\r\n## Description\r\n\r\nWhen I tried to install latest @sentry/nextjs package I got this error:\r\n\r\n```\r\nnpm install --save @sentry/nextjs\r\nnpm ERR! code ERESOLVE\r\nnpm ERR! ERESOLVE unable to resolve dependency tree\r\nnpm ERR! \r\nnpm ERR! While resolving: ***@0.1.0\r\nnpm ERR! Found: next@11.0.0\r\nnpm ERR! node_modules/next\r\nnpm ERR! next@\"11.0.0\" from the root project\r\nnpm ERR! \r\nnpm ERR! Could not resolve dependency:\r\nnpm ERR! peer next@\"^10.0.8\" from @sentry/nextjs@6.7.1\r\nnpm ERR! node_modules/@sentry/nextjs\r\nnpm ERR! @sentry/nextjs@\"*\" from the root project\r\nnpm ERR! \r\nnpm ERR! Fix the upstream dependency conflict, or retry\r\nnpm ERR! this command with --force, or --legacy-peer-deps\r\nnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.\r\nnpm ERR! \r\nnpm ERR! See /home/prism/.npm/eresolve-report.txt for a full report.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR! /home/prism/.npm/_logs/2021-06-17T17_56_44_854Z-debug.log\r\n```\r\n\r\nhere is my project package.json\r\n\r\n```\r\n{\r\n \"name\": \"***\",\r\n \"version\": \"0.1.0\",\r\n \"private\": true,\r\n \"scripts\": {\r\n \"dev\": \"next dev\",\r\n \"build\": \"next build\",\r\n \"size\": \"ANALYZE=true next build\",\r\n \"start\": \"next start -p 4321\"\r\n },\r\n \"dependencies\": {\r\n \"@next/bundle-analyzer\": \"^11.0.0\",\r\n \"axios\": \"^0.21.1\",\r\n \"escape-string-regexp\": \"^5.0.0\",\r\n \"luxon\": \"^1.27.0\",\r\n \"next\": \"11.0.0\",\r\n \"next-pwa\": \"^5.2.21\",\r\n \"next-seo\": \"^4.25.1\",\r\n \"react\": \"17.0.2\",\r\n \"react-dom\": \"17.0.2\",\r\n \"react-responsive-carousel\": \"^3.2.18\"\r\n },\r\n \"devDependencies\": {\r\n \"@babel/core\": \"^7.14.6\",\r\n \"@babel/preset-env\": \"^7.14.5\",\r\n \"bulma\": \"^0.9.2\",\r\n \"sass\": \"^1.35.1\",\r\n \"webpack\": \"^5.39.0\"\r\n }\r\n}\r\n```\r\n\r\nand next.config.js content:\r\n\r\n```\r\nconst withPWA = require('next-pwa');\r\nconst path = require('path');\r\n\r\nconst withBundleAnalyzer = require('@next/bundle-analyzer')({\r\n enabled: process.env.ANALYZE === 'true',\r\n})\r\n\r\nlet domain = '***';\r\n\r\n\r\nlet nextConfig = {\r\n target: \"serverless\",\r\n sassOptions: {\r\n includePaths: [path.join(__dirname, 'styles')],\r\n },\r\n env: {\r\n domain: domain,\r\n },\r\n images: {\r\n domains: ['***'],\r\n },\r\n pwa: {\r\n dest: 'public',\r\n }\r\n}\r\n\r\n\r\nif(process.env.DEBUG) {\r\n domain = 'http://localhost:8000';\r\n module.exports = withBundleAnalyzer({\r\n env: {\r\n domain: domain,\r\n },\r\n images: {\r\n domains: ['**'],\r\n },\r\n\r\n })\r\n}\r\n\r\nmodule.exports = withPWA(nextConfig);\r\n```","author":{"url":"https://github.com/pyprism","@type":"Person","name":"pyprism"},"datePublished":"2021-06-17T18:13:07Z","url":"https://github.com/getsentry/sentry-javascript/issues/3700"}
| 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:11e2ff84-b95b-92ff-05f6-449e9ef4f7c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1A6:681B3:6F097E:9BD250:6B044D74 |
| html-safe-nonce | 7c14c4f6c25d3de83268da1e064736fcef7dbfb203508dedb7fd8b60d04e8450 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUE2OjY4MUIzOjZGMDk3RTo5QkQyNTA6NkIwNDRENzQiLCJ2aXNpdG9yX2lkIjoiMzkyMTk0ODY2NjU4MzMzODM1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70fffea8fd4e8ac41985a9b5eaa039949647c87ebd167abe215d677e03162d66 |
| hovercard-subject-tag | issue:924204977 |
| 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/3700/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd33072a5affaba8000c71212d8efa1cd9a3bc637410979ddb9f07d6ec08b863/getsentry/sentry-javascript/issues/3700 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd33072a5affaba8000c71212d8efa1cd9a3bc637410979ddb9f07d6ec08b863/getsentry/sentry-javascript/issues/3700 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pyprism |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| 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 | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| 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