-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect NEXTJS_REQUEST_ASYNC_STORAGE_MODULE_PATH
in Next.js 13.4.20
#8977
Comments
@Burry Hey, thanks for reporting this. Can I ask what made you resolve this issue? Were there any learnings? |
the error is in the nextjs side aparently, they fixed at canary 13.4.20-canary.21 and broke again in 13.4.20-canary.22 |
It's not a breakage it's just a refactor of internal apis that Sentry is using. The change will be present from canary 22 most likely, so you should update the path you're requiring from. |
@feedthejim when you said you , are you refering to me ? or sentry team ?, cause i am not referencing that library at all in my code. |
Sure thing, reopening it now lol. Vercel initially reverted the changes that led to this issue so I closed it. I missed they took another shot at it in vercel/next.js#55139 |
No real learnings though, I got frustrated trying to monkeypatch @sentry/nextjs and just stayed on the Next build that reverted the refactor |
any advance on this, we get forced to disabled sentry for now due to this, 👯♀️ |
I will note here that the SDK will always only follow the stable release cadence of Next.js. We are not making guarantees to be compatible with the canary build. If you want a stable environment, I recommend sticking to the stable versions. |
Totally understand, this was just proactive. My team needed to run the Next canary for some critical fixes it introduced, just hoping Sentry’s good to go when Vercel ’s |
Got you totally understand. |
Just updated to
This issue doesn't seem to occur when I remove Sentry. Does everybody else experience this issue? |
I just upgraded our project to Next.js version |
@Noah-Haf can you verify that you actually run version |
Hi @lforst, I am indeed on the |
I am also having the same error with nextjs |
I also tried with nextjs |
This is happening for me too. not sure why this issue is closed? I did check the path to the file and the |
This issue was closed because it was fixed originally and now the error message shows up again for different reasons. In order to incentivize people to provide proper error reports and reproduction and prevent bandwaggoning I will lock this issue. Please open a new issue with error logs and reproduction steps. Thank you! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.68.0
Framework Version
13.4.20
Link to Sentry event
No response
SDK Setup
npx @sentry/wizard@latest -i nextjs
Steps to Reproduce
yarn add next@13.4.20-canary.20
) in a project using the Next.js 13 App Directory and Route Handlers.next.config.js
.next build
.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.
Module not found: Can't resolve '@sentry/nextjs/build/esm/config/templates/requestAsyncStorageShim.js'
Expected Result
Next.js should successfully build all Route Handlers wrapped by Sentry
Actual Result
Identified the offending line in packages/nextjs/src/config/loaders/wrappingLoader.ts#L19, which should use
next/dist/client/components/request-async-storage.external
The text was updated successfully, but these errors were encountered: