getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.76k stars 1.52k forks source link

Next. js version 12.3.4, invalid server report, no errors collected;"@sentry/nextjs": "8.13.0" #12746

Closed parlay96 closed 2 days ago

parlay96 commented 3 days ago

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.13.0

Framework Version

next v12.3.4

Link to Sentry event

No response

SDK Setup/Reproduction Example

No response

Steps to Reproduce

1: Firstly, the register method on the server was not executed at all, image 2: The Sentry platform also did not collect any errors regarding the server side image 3:Only client errors are effective for the client image

Expected Result

How to solve it?

Actual Result

1: Firstly, the register method on the server was not executed at all, image 2: The Sentry platform also did not collect any errors regarding the server side image 3:Only client errors are effective for the client image

lforst commented 3 days ago

Hi, the minimum supported Next.js version is 13.2.0. instrumentation.ts got added to Next.js in that version. Please take a look at our peer dependencies:

https://github.com/getsentry/sentry-javascript/blob/8e75acf4048be9129c5adb6373e35c3bf58e964d/packages/nextjs/package.json#L92

parlay96 commented 3 days ago

@lforst So my version is 12.xx, how should I use Sentry?, Or rather, I am a server-side rendering, and if I connect to Sentry

chargome commented 3 days ago

@parlay96 You need to upgrade your Next.js app to a supported version in order to use the latest version of @sentry/nextjs.

parlay96 commented 3 days ago

@chargome That's not possible. Our project is very stable,Just connect to Sentry. We don't want to upgrade

chargome commented 3 days ago

@parlay96 Next.js v12 is still supported in our v7 SDK, but keep in mind that this version of the SDK will only continue to receive critical bugfixes until end of 2024.

parlay96 commented 2 days ago

@chargome ok,Thank you。