Skip to content

@sentry/nextjs: v6.7.2 (and v6.8.0) does not work with next-compose-plugins #3733

Closed
@jakst

Description

@jakst

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/nextjs

Version:

6.7.2

Description

When upgrading from v6.7.1 to v6.7.2 of @sentry/nextjs the plugin no longer builds and uploads sourcemaps. It simply acts as if the plugin was never installed.

const composePlugins = require('next-compose-plugins');
const { withSentryConfig } = require('@sentry/nextjs');

const nextConfig = {
  // ...
};

const sentryWebpackPluginOptions = {
  // Additional config options for the Sentry Webpack plugin. Keep in mind that
  // the following options are set automatically, and overriding them is not
  // recommended:
  //   release, url, org, project, authToken, configFile, stripPrefix,
  //   urlPrefix, include, ignore
  // For all available options, see:
  // https://github.com/getsentry/sentry-webpack-plugin#options.
};

module.exports = composePlugins([
  ...otherPlugins,
  [withSentryConfig, sentryWebpackPluginOptions],
], nextConfig);

The above config worked fine on v6.7.1, but does nothing on v6.7.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nextjsIssues related to the Sentry Nextjs SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions