-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Webpack plugin incompatibility between @sentry/nextjs
and next-plugin-preval
#3848
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
Comments
Routing to @getsentry/team-webplatform for triage. ⏲️ |
The author of the other lib has identified the issue coming from See ricokahler/next-plugin-preval#42 (comment) It should be noted this will affect many other plugins, it's not specific to that one in particular. |
Yes - this is a known problem, slated for fixing this sprint. Thanks for checking in with the preval folks. |
…ype (#3760) When fixing https://github.com/getsentry/sentry-docs/issues/3723, the return type of `withSentryConfig` was changed from an object to a function which returns an object, since otherwise there's no way to get the `phase` and `defaultConfig` arguments needed when the user passes their existing nextjs config as a function. If users follow our instructions in https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/, and export `withSentryConfig(...)` with no further modifications, this is an invisible change, since they're never dealing with its return value. But for any who do further process said value, it turns out to have been a potentially breaking change. This reverts to the old behavior (of returning an object) in cases where the existing config is an object, and only returns a function when necessary, which is to say, when the existing config is itself a function. Fixes #3722.
Issue
This an issue with:
Platform/SDK documentation (Which one?)
https://docs.sentry.io/platforms/javascript/guides/nextjs/
Sentry Product (Which area?)
nextjs
Description
ricokahler/next-plugin-preval#42
Suggested Solution
I'm not sure if you'd want to look into it, adapt the doc, etc. I don't know from what plugin the issue comes from.
The text was updated successfully, but these errors were encountered: