Closed as not planned
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
7.55.0
Framework Version
1.20.2
Link to Sentry event
No response
SDK Setup
import { sveltekit } from '@sveltejs/kit/vite';
import evictCacheWhenRunningTestPlugin from './evict-cache-when-running-test-plugin.js';
import markdown from '@eddy/markdoc-vite-plugin/src/index.js';
const test = process.env.EDDY_ENV === 'test';
import { sentrySvelteKit } from '@sentry/sveltekit';
/*
Sentry vite plugin based on this comment:
https://github.com/getsentry/sentry-javascript/discussions/5838#discussioncomment-4704318
*/
const sentryKey = process.env.SENTRY_AUTH_TOKEN;
/** @type {import('vite').UserConfig} */
const config = {
plugins: [
...(test
? []
: [
sentrySvelteKit({
authToken: process.env.SENTRY_AUTH_TOKEN,
autoUploadSourceMaps: !test,
include: ['dist'],
cleanArtifacts: true,
setCommits: {
auto: true,
},
}),
]),
markdown(),
sveltekit(),
evictCacheWhenRunningTestPlugin(),
],
build: {
sourcemap: true,
target: ['es2022', 'edge89', 'firefox89', 'chrome89', 'safari15'],
},
server: {
hmr: {
overlay: test ? false : true,
...(process.env.CODESPACE_NAME && {
clientPort: 443,
// host: `${process.env.CODESPACE_NAME}-3000.githubpreview.dev`,
}),
},
fs: {
// Allow serving files from one level up to the project root
allow: ['../../packages/'],
},
},
optimizeDeps: {
esbuildOptions: {
target: ['es2022', 'edge89', 'firefox89', 'chrome89', 'safari15'],
},
// entries: ['src/*/*.html', 'packages/**/*', '../node_modules/@eddy/**/*', '@eddy/**/*'],
include: [
'cookie',
'@steeze-ui/svelte-icon',
'@apollo/client/core',
'@tiptap/extension-placeholder',
'@sveltejs/pancake',
'qrcode-svg',
'@uploadcare/upload-client',
'graphql-tag',
'nanoid',
'@tiptap/core',
'@tiptap/html',
'lodash-es',
'luxon',
'@tiptap/extension-document',
'@tiptap/extension-paragraph',
'@tiptap/extension-text',
'@tiptap/extension-gapcursor',
'@tiptap/extension-bold',
'@tiptap/extension-italic',
'@tiptap/extension-bullet-list',
'@tiptap/extension-ordered-list',
'@tiptap/extension-list-item',
'@tiptap/extension-link',
'@tiptap/extension-table',
'@tiptap/extension-table-row',
'@tiptap/extension-table-cell',
'@tiptap/extension-table-header',
'@tiptap/extension-history',
'@tiptap/extension-heading',
'@tiptap/extension-subscript',
'@tiptap/extension-superscript',
'@tiptap-pro/extension-details',
'@tiptap-pro/extension-details-content',
'@tiptap-pro/extension-details-summary',
'bson',
'yootils',
'three/examples/jsm/controls/OrbitControls.js',
'three-globe',
'three',
'pusher-js',
'@sentry/integrations',
'@apollo/client/core/index.js',
'canvas-confetti',
'graphql',
'@steeze-ui/heroicons',
'@popperjs/core',
'tippy.js',
'magic-string',
'@sentry/utils',
'@beyonk/svelte-mapbox',
'fuzzysort',
'@steeze-ui/carbon-icons',
'@uploadcare/blocks',
'radix-svelte',
'powerbi-client',
'saos',
'graphql-request',
'@steeze-ui/feather-icons',
'svelte-typewriter',
'prosemirror-model',
'@floating-ui/core',
'@floating-ui/dom',
'zod',
'@uploadcare/blocks/env',
'sveltekit-superforms/server',
'sveltekit-superforms/client',
'odometer',
'@vercel/analytics',
],
},
};
export default config;
Steps to Reproduce
When running build, I don't get any sourcemaps uploaded.
In the environment i have 3 variables:
SENTRY_AUTH_TOKEN
SENTRY_ORG
SENTRY_PROJECT
But running vite build
just gives me:
<sveltekit build output>
✓ built in 1m 19s
[sentry-vite-plugin] Info: Successfully created release.
[sentry-vite-plugin] Info: Uploading Sourcemaps.
> Rewriting sources
> Adding source map references
> Rewriting sources
> Adding source map references
> Nothing to upload
> Nothing to upload
[sentry-vite-plugin] Info: Successfully uploaded source maps.
[sentry-vite-plugin] Info: Successfully finalized release.
Expected Result
I would expect sourcemaps to be uploaded to the correct release.
Actual Result

Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Product Owner