Title: Incorrect `NEXTJS_REQUEST_ASYNC_STORAGE_MODULE_PATH` in Next.js 13.4.20 · Issue #8977 · getsentry/sentry-javascript · GitHub
Open Graph Title: Incorrect `NEXTJS_REQUEST_ASYNC_STORAGE_MODULE_PATH` in Next.js 13.4.20 · Issue #8977 · getsentry/sentry-javascript
X Title: Incorrect `NEXTJS_REQUEST_ASYNC_STORAGE_MODULE_PATH` in Next.js 13.4.20 · Issue #8977 · 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/8977
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect `NEXTJS_REQUEST_ASYNC_STORAGE_MODULE_PATH` in Next.js 13.4.20","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 SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n7.68.0\n\n### Framework Version\n\n13.4.20\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n`npx @sentry/wizard@latest -i nextjs`\n\n### Steps to Reproduce\n\n1. Install the Next.js canary release (`yarn add next@13.4.20-canary.20`) in a project using the Next.js 13 App Directory and Route Handlers.\r\n2. Implement the Sentry plugin in `next.config.js`.\r\n3. Run `next build`.\r\n4. Observe a console warning: `The Sentry SDK could not access the RequestAsyncStorage module. Certain features may not work. There is nothing you can do to fix this yourself, but future SDK updates may resolve this.`\r\n5. Observe an error when building each route handler wrapped by Sentry: `Module not found: Can't resolve '@sentry/nextjs/build/esm/config/templates/requestAsyncStorageShim.js'`\n\n### Expected Result\n\nNext.js should successfully build all Route Handlers wrapped by Sentry\n\n### Actual Result\n\nIdentified the offending line in [packages/nextjs/src/config/loaders/wrappingLoader.ts#L19](https://github.com/getsentry/sentry-javascript/blob/develop/packages/nextjs/src/config/loaders/wrappingLoader.ts#L19), which should use `next/dist/client/components/request-async-storage.external`","author":{"url":"https://github.com/Burry","@type":"Person","name":"Burry"},"datePublished":"2023-09-07T17:44:02Z","url":"https://github.com/getsentry/sentry-javascript/issues/8977"}
| 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:969693b6-c540-a5d4-6e5b-5ee5f40ff437 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3BA:19030E:878F55:BF1C7B:6B045397 |
| html-safe-nonce | 873e57fccf6e99a45a8cbdff481b94d689d636c5ed346cde7f9db13dcb768b7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0JBOjE5MDMwRTo4NzhGNTU6QkYxQzdCOjZCMDQ1Mzk3IiwidmlzaXRvcl9pZCI6IjM5MjExOTAxNzUzNTg4NjYzMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c6576760ec72ed2b9a9276c9cb32fb000d54d0e4d88ce2029356d4ae1f96007e |
| hovercard-subject-tag | issue:1886335424 |
| 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/8977/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80cf1b2a5ad7fffb28f0a8c13e3f1bf1a31ca2e9d19a5452731396b8cbee502b/getsentry/sentry-javascript/issues/8977 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80cf1b2a5ad7fffb28f0a8c13e3f1bf1a31ca2e9d19a5452731396b8cbee502b/getsentry/sentry-javascript/issues/8977 |
| 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 | Burry |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| 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