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

Missing source file with a matching Debug ID on SvelteKit & Cloudflare #15622

Open
3 tasks done
tarekfb opened this issue Mar 9, 2025 · 1 comment
Open
3 tasks done
Labels
Package: sveltekit Issues related to the Sentry SvelteKit SDK Waiting for: Product Owner

Comments

@tarekfb
Copy link

tarekfb commented Mar 9, 2025

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

9.5.0

Framework Version

2.5.10

Link to Sentry event

https://digitutor-dev.sentry.io/issues/32624244/events/52d2d2175dbc48d58466599eedaf6041/

Reproduction Example/SDK Setup

Things I've tried:

  • set values for args sentrySvelteKit() in config obj
 sentrySvelteKit(
      {
        adapter: 'cloudflare',
        sourceMapsUploadOptions: {
          org: 'my-org',
          project: 'my-proj',
          authToken: env.my-token,
        }
      }
    )
  • ran in dev mode

I read in an older github issue that source maps arent optimised for non-production builds. How can I ensure it is a non-production build?
I did run build & preview for both environment: 'local' and environment: 'prod', in the init function for sveltekit hooks.

Docs also says "@sentry/sveltekit will generate and upload source maps automatically", however i followed wizard anyhow. Everything else is working fine, sentry wise.

In the modal/guide on sentry I'm at step "Missing source file with a matching Debug ID", with following info

No Source File With Matching Debug ID
You already uploaded artifacts with Debug IDs but none of the uploaded source files had a Debug ID matching this stack frame's Debug ID: 7056a63a-784e-4423-9f7f-599705af8b59

Make sure to inject Debug IDs into all of your source files and to upload all of them to Sentry.

Steps to Reproduce

  1. Generate an error, in in client or server
  2. Look for source maps at sentry event in saas

Expected Result

Have full stack trace with source maps

Actual Result

Stack trace without source maps.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 9, 2025
@github-actions github-actions bot added the Package: sveltekit Issues related to the Sentry SvelteKit SDK label Mar 9, 2025
@tarekfb
Copy link
Author

tarekfb commented Mar 9, 2025

Source maps just worked on a remote environment hosted on cloudflare for a client side error. Previous testing was on localhost, on both dev mode and production builds (vite build & vite preview scripts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: sveltekit Issues related to the Sentry SvelteKit SDK Waiting for: Product Owner
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

1 participant