Skip to content
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

Can not get sourcemap when error occurred in nextjs dynamic routes files #4593

Closed
Shiro666 opened this issue Feb 16, 2022 · 4 comments
Closed
Labels
Feature: Source Maps Package: nextjs Issues related to the Sentry Nextjs SDK

Comments

@Shiro666
Copy link

hello,
I tried to use sentry to track errors in a nextjs application, and I found that if the error occurred in the dynamic routes file of nextjs, the sourcemap could not be parsed, but it is parsed right in the static routes.
Then I tried a simple example:
The error in page/index.jsx can get the sourcemap, like this:
image
But the error in page/[domain].jsx can not get the sourcemap, like this:
image
I'm sure that the all the sourcemap files have been uploaded to the sentry.io artifacts.

@AbhiPrasad
Copy link
Member

You might be hitting issues raised in #3896. We're discussing how to best approach this internally atm, will update soon!

@Shiro666
Copy link
Author

You might be hitting issues raised in #3896. We're discussing how to best approach this internally atm, will update soon!

Thanks your answer! I have seen the issues raised in #3896 . It mentions that "sentry config only uploads .next/static/chunks/pages instead of .next/static/chunks". But I upload all files in .next/static directory. Source maps only not work in nextjs dynamic routes, but work right in static routes. Is that the same problems?

@lforst
Copy link
Member

lforst commented Jan 16, 2023

Hi, source maps should work in all routes! Let me know if you're still facing the issue. I recommend updating to the newest version of the SDK.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2023

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Source Maps Package: nextjs Issues related to the Sentry Nextjs SDK
Projects
None yet
Development

No branches or pull requests

3 participants