question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@sentry/next.js and @sentry/cli failing after Next.js 12.2.0 upgrade

See original GitHub issue

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/nextjs

SDK Version

7.5.0

Framework Version

7.5.0

Link to Sentry event

No response

Steps to Reproduce

After upgrading to Next.js 12.2.0, webpack plugin withSentryConfig seems to fail when CLI tries to update and upload source maps.

Expected Result

CLI is expected to recognize Node.js modules.

Actual Result

Getting this error CleanShot 2022-07-05 at 11 28 37

even if all those modules are already skipped on non-server builds. CleanShot 2022-07-05 at 11 33 27

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AbhiPrasadcommented, Jul 5, 2022

See https://github.com/vercel/next.js/issues/36776 for more details. Yeah we don’t support middleware at the moment, this is being tracked here: https://github.com/getsentry/sentry-javascript/issues/4206

0reactions
heldrcommented, Jul 8, 2022

Bug reported was fixed on Next.js 12.2.1 by this changed https://github.com/vercel/next.js/pull/38234

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next.js - Sentry Documentation
On this page, we get you up and running with Sentry's SDK, so that it will automatically report errors and exceptions in your...
Read more >
Can not run server after add sentry to nextjs project
The solution to this problem is, upgrade next.js to >= 10.0.8 github.com/getsentry/sentry-javascript/issues/3724.
Read more >
@next/bundle-analyzer - npm
Use `webpack-bundle-analyzer` in your Next.js project. Latest version: 13.1.1, last published: 2 days ago. Start using @next/bundle-analyzer in your project ...
Read more >
Package List — Spack 0.20.0.dev0 documentation
A package universe and a request to install, remove, or upgrade packages have to be encoded in the CUDF format. Such a CUDF...
Read more >
Compare Packages Between Distributions - DistroWatch.com
Often times it is useful to be able to compare the versions of different packages between two ... dbus-next 0.2.3 ... JavaScript-Minifier-XS 0.150.0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found