-
-
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
sentrySvelteKit in vite.config.ts does not upload sourcemaps #15227
Comments
Hey @ktarmyshov thanks for writing in! Some things to narrow this down:
|
@Lms24 Hi, Lukas! I do use different adapters for different env variables, but when I build for preview, I use adapter-auto - yes. Build command "vite build --mode development" I tried vite-plugin, to see if there is a difference, and vite-plugin does upload the sourcemaps - I see various log messages, debug id, etc. |
Thanks for getting back to me! I tried to reproduce this with adapter-auto but for me source maps were uploaded correctly. See my reproduction repository: https://github.com/Lms24/gh-sentry-javascript-15227-sveltekit-no-sourcemaps Would you mind pointing out what I need to add in my reproduction so that the bug appears? Otherwise please provide your own reproduction. I can't really see it but any chance that the |
Hi, Lukas! |
Is it possible to enable output debug/trace for the plugin, what it's doing? |
I got your repo working for me as well, but for my repo it's not working :( |
found: |
If you set |
hmm yes this is a safeguard not to upload when the dev server is running. I'm wondering why the |
I was setting NODE_ENV to development also for build, that's why it wasn't working. So I will close the issue, need to figure out, when to set it and when not to set it :), or do I need to set it at all. |
Oh interesting, I see! If you have a good reason to set Closing as completed for now. |
Since sentry print logs when uploading maps, it could be useful to print why it won't upload in case it won't |
yeah I agree, let me think about this and the env variable check at this point. it doesn't seem completely sound to me. |
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
8.52.0
Framework Version
SvelteKit 2.16.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
vite.config.ts
Steps to Reproduce
added (see above) modifications to vite config.
If I use sentryVitePlugin - some uploading is happening at the end of build but BEFORE the adapter is executed
sentrySvelteKit has no effect and does nothing.
Expected Result
sentrySvelteKit plugin should upload sourcemaps.
Actual Result
Nothing seems to be uploaded
The text was updated successfully, but these errors were encountered: