Skip to content

[nextjs] Improve webpack plugin enablement and warnings #5619

Description

@lobsterkatie

Current as of version 7.11.1

This is a continuation of the conversation started in getsentry/sentry#37649. TL;DR: If, in the nextjs SDK, we enable the webpack plugin in a situation where the user is unlikely to have set up sentry-cli, we're setting them up for errors.

That issue was specifically about the preview and development environments on Vercel, and that case has been handled in #5603, which will be released in version 7.12. As discussed in the original PR, though, there's more that could be done, which I'm recording here so that the PR can be closed. Specifically:

  • Investigate if users run into similar problems on other deployment platforms, and if we should therefore expand the list of checks for webpack plugin enablement.
  • Figure out ways to either handle the error more gracefully or improve the error messages when the error does happen. This might happen in the nextjs SDK, the webpack plugin itself, or in sentry-cli.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions