Closed jakst closed 2 years ago
Only change was a dependency update:
Curious to find out what changed in sentry/webpack-plugin
Curious to find out what changed in sentry/webpack-plugin
It updated sentry-cli by a single minor version. However, only change related to JS API was this - https://github.com/getsentry/sentry-cli/commit/49eeb9aab399cb92b097c3a6c213c9c8dcf0c0df
Can you add debug: true
to your plugin config, and run it with export SENTRY_LOG_LEVEL=debug
?
Just observed this behavior as well upgrading from 6.7.1
to 6.7.2
,
NextJs 10.2.3
"next-compose-plugins": "^2.2.1",
Changing next.config.js
to remove next-compose-plugins
fixed it immediately.
// next.config.js
const moduleExports = withBundleAnalyzer({
...
});
...
module.exports = withSentryConfig(moduleExports, SentryWebpackPluginOptions);
Will try to gather debug info as well shortly..
--- though rolling back worked, as set up above without next-compose-plugin
, we are now getting the following in console...
DevTools failed to load source map: Could not load content for https://[domain]/ddcfa7ccd5b9337cba8d.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://[domain]/_next/static/css/ddcfa7ccd5b9337cba8d.css.map: Load canceled due to load timeout
DevTools failed to load source map: Could not load content for https://[domain]/_next/static/css/9bfc4516136017b290ab.css.map: Load canceled due to load timeout
I just tried to run it with debug: true
and SENTRY_LOG_LEVEL=debug
, but I get no output from Sentry whatsoever. It's as if the plugin doesn't exist.
I also tried with the new v6.8.0
, but the same problem persists.
Im having the same problem.
@Jakst Have you tried adding the withSentryConfig
plugin this way?
module.exports = withPlugins(
[
[nextTranslate],
[
optimizedImages,
{
/* config for next-optimized-images */
optimizeImagesInDev: true,
mozjpeg: { quality: 95 },
},
],
],
withSentryConfig(nextConfig, SentryWebpackPluginOptions),
)
This solved the issue for me not being able to prevent sourcemap upload because the plugin options were not applied correct due to this issue. However still stuck on 6.7.1
Hi @huggge,
I can confirm that this does works for me (tested here https://github.com/natterstefan/next-with-sentry/pull/3), but only with
"@sentry/nextjs": "6.8.0", // also with 6.7.1
"next": "10.2.3" // but not with 10.1.3
I did not test it with next@11.x
yet.
@Jakst Have you tried adding the
withSentryConfig
plugin this way?module.exports = withPlugins( [ [nextTranslate], [ optimizedImages, { /* config for next-optimized-images */ optimizeImagesInDev: true, mozjpeg: { quality: 95 }, }, ], ], withSentryConfig(nextConfig, SentryWebpackPluginOptions), )
This solved the issue for me not being able to prevent sourcemap upload because the plugin options were not applied correct due to this issue. However still stuck on
6.7.1
Yes you're right, plugin options don't work with my setup in my initial setup. I didn't have any options, so I didn't notice.
Your version works well, but as you say, upgrading still does not work. And adding the debug options don't give any extra output.
Has anyone actually gotten anything past version 6.7.1
to work at all? I can't find any circumstances under which it works.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog
or Status: In Progress
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Bumping; this is still relevant!
not stale
Definitely not stale
This is duplicated by https://github.com/getsentry/sentry-javascript/issues/3579, so let's consolidate the conversation there.
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
When upgrading from
v6.7.1
tov6.7.2
of @sentry/nextjs the plugin no longer builds and uploads sourcemaps. It simply acts as if the plugin was never installed.The above config worked fine on
v6.7.1
, but does nothing onv6.7.2
.