-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't receive errors in Sentry but they're logged in the #13538
Comments
Hey @TheCukitoDev thanks for writing in! I can't start your reproduction because I'm missing a bunch of API keys to even get to the sentry example page. Can you email them to me (see address in my profile)? Otherwise please provide a reproduction that doesn't require all these keys, thanks! Without being able to test this myself I can only give some superficial suggestions:
|
Hello, I changed the .env.example in the commit c947adf. The only required env variables are the ones that are public and the sentry one (i think you should have one to debug them). The resend, openai and clerk keys doesen't matters. They can just be bypassed by using some fake keys like sk_xxxx or stc_xxxxxx. If you change the |
Hey @TheCukitoDev, I finally got the reproduction working. Had to remove the It looks like the problem is not the Sentry SDK in this case but the the So in your case, your next.config file was simply ignored. You can verify this independently of Sentry by removing everything from this file and just logging something to the console. It won't appear. To fix this:
Judging by the comment left by the wizard, it looks like our wizard might have detected the wrong JS flavour and added our CJS code snippet instead of the ESM variant. But it's hard to say this with certainty without knowing how this file looked before adding Sentry. So with these fixes in place, I got errors and spans/transactions in the Sentry UI. I'm going to close this issue for the time being as I believe this should be fixed. Please let me know if you have further questions or think this needs to be reopened. Thanks! |
Thanks. It works perfectly. I changed the .js to the .cjs because in the package.json it says .js refers to ES6 so it should be .cjs in my mind to made it works. Thanks |
|
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8
Framework Version
Next 14.2.4
Link to Sentry event
No response
Reproduction Example/SDK Setup
You can go to my repo
Steps to Reproduce
bun dev
Expected Result
Should log error in sentry. But nothing happens.
Actual Result
It should appear a error in sentry page but only appears in my console. I don't know if it is because of the t3 stack. This is T3 stack. Sorry but i recorded video while listening music.
20240830-1005-29.5159419.mp4
The text was updated successfully, but these errors were encountered: