getsentry / sentry-javascript

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

Sentry+Next.js example is broken #5129

Closed smeubank closed 2 years ago

smeubank commented 2 years ago

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

16.19

Framework Version

11.1.4

Link to Sentry event

No response

Steps to Reproduce

https://github.com/vercel/next.js/issues/36836

Expected Result

no issues

worth upgrading the example to Next 12

Actual Result

#36836 with-sentry example does not build I tried to run it locally and got the same error as the user. The wizard step showed me some errors, but the run was successful anyway,

image

kamilogorek commented 2 years ago

This is a valid behavior, which is mentioned in the readme - https://github.com/vercel/next.js/tree/canary/examples/with-sentry

Beware that above command creates files extended with .wizardcopy.js as the example already contains the config files.

Updated docs to be more explicit - https://github.com/vercel/next.js/pull/37039