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

Source maps not working on nextjs for server files #1251

Open
subzero10 opened this issue Nov 17, 2023 · 6 comments
Open

Source maps not working on nextjs for server files #1251

subzero10 opened this issue Nov 17, 2023 · 6 comments
Assignees
Labels
nextjs @honeybadger-io/nextjs

Comments

@subzero10
Copy link
Member

subzero10 commented Nov 17, 2023

Even with #1248, a user is having issues on getting source maps to work for server files.

Front logo Front conversations

@subzero10 subzero10 added the nextjs @honeybadger-io/nextjs label Nov 17, 2023
@subzero10 subzero10 self-assigned this Nov 17, 2023
@maxkostow
Copy link
Contributor

Any update on this?

@subzero10
Copy link
Member Author

Hey @maxkostow, I'm trying source maps with a nextjs example app.

I've setup this project and deployed to Vercel.
Note the use of NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA to set the value for the revision property in both next.config.js and honeybadger.*.config.js files.
I configured the following env variables on Vercel:

  • NEXT_PUBLIC_HONEYBADGER_ASSETS_URL = https://example-nextjs-dashboard.vercel.app/_next
  • NEXT_PUBLIC_HONEYBADGER_API_KEY = MY_PROJECT_API_KEY

The project comes with button to send a manual report to Honeybadger. You can see it here.

These errors show up with the expected source map applied on Honeybadger:
image

Is it possible to share an example repository where source maps are not working for you so that I can try on that project as well?

@maxkostow
Copy link
Contributor

maxkostow commented Jan 26, 2024

That appears to be a client component (not the use client at the top of the file) so would not run on the server.

I'm now noticing that the github issue does not mention it, but on the support ticket I believe it is mentioned that this is for server side sourcemaps; the client side ones are working.

@subzero10
Copy link
Member Author

Ah yes you are right. I'll look into that then!

@subzero10 subzero10 changed the title Source maps not working on nextjs Source maps not working on nextjs for server files Jan 29, 2024
@maxkostow
Copy link
Contributor

maxkostow commented Feb 23, 2024

Any update on this? As you can imagine it is quite problematic for debugging. If this cannot be resolved we will have to consider moving to another error tracking provider. Unfortunate since otherwise honeybadger has been quite nice for us.

@subzero10
Copy link
Member Author

Hey @maxkostow, apologies for not getting back sooner. I did have a look into this but it's not a simple task.
I can't give you a timeline, but I will tell you that it's in our plans to work on getting source maps for server files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nextjs @honeybadger-io/nextjs
Projects
None yet
Development

No branches or pull requests

2 participants