-
-
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
Require.context not working after installing sentry on Next.js project #6961
Comments
Assigning to @getsentry/support for routing, due by Monday, January 30th at 10:47 am (yyz). ⏲️ |
Routing to @getsentry/team-web-sdk-frontend for triage, due by Tuesday, January 31st at 11:07 am (sfo). ⏲️ |
Thanks for reporting this. We'll look into it! |
This can be traced back to the same underlying issue as #6943. |
Hi, we just released an update that should fix this problem. https://github.com/getsentry/sentry-javascript/releases/tag/7.35.0 Let me know if upgrading the SDK fixes this issue for you! |
Environment
SaaS (https://sentry.io/)
Version
No response
Link
No response
DSN
No response
Steps to Reproduce
I've installed sentry on my Next.js project. I'm trying to use
require.context
like so:This was working fine before installing sentry, but doesn't work after installing sentry. I assume the reason it no longer works is because sentry changes the webpack configuration.
I tried using
import.meta.webpackContext
as the ESM alternative torequire.context
, but this didn't work either - I just getimport.meta.webpackContext
is undefined.Expected Result
Should be able to use
require.context
orimport.meta.webpackContext
Actual Result
The text was updated successfully, but these errors were encountered: