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
Framework Version
Svelte 5 + SvelteKit 2
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/jerriclynsjohn/paraglide-sentry
Steps to Reproduce
- Create a bare-bones SvelteKit project with paraglide demo using
npx sv create
- Add Sentry using
npx @sentry/wizard@latest -i sveltekit --saas --org sample-org --project sample-project
Expected Result
Build shouldnt break
Actual Result
Build in Vercel Breaks with the following result
x Build failed in 1.09s
error during build:
[vite:load-fallback] Could not load /vercel/path0/src/lib/paraglide/sentry-release-injection-file (imported by src/lib/paraglide/messages.js): The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/vercel/path0/src/lib/paraglide/\x00sentry-release-injection-file'
TypeError [PLUGIN_ERROR]: Could not load /vercel/path0/src/lib/paraglide/sentry-release-injection-file (imported by src/lib/paraglide/messages.js): The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/vercel/path0/src/lib/paraglide/\x00sentry-release-injection-file'
at open (node:internal/fs/promises:635:10)
at Object.readFile (node:internal/fs/promises:1238:20)
at Object.load (file:///vercel/path0/node_modules/.pnpm/vite@5.4.11_@types+node@22.10.5/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:65091:35)
at async PluginDriver.hookFirstAndGetPlugin (file:///vercel/path0/node_modules/.pnpm/rollup@4.30.1/node_modules/rollup/dist/es/shared/node-entry.js:20836:28)
at async file:///vercel/path0/node_modules/.pnpm/rollup@4.30.1/node_modules/rollup/dist/es/shared/node-entry.js:19956:33
at async Queue.work (file:///vercel/path0/node_modules/.pnpm/rollup@4.30.1/node_modules/rollup/dist/es/shared/node-entry.js:21046:32)
ELIFECYCLE Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1
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
Framework Version
Svelte 5 + SvelteKit 2
Link to Sentry event
No response
Reproduction Example/SDK Setup
https://github.com/jerriclynsjohn/paraglide-sentry
Steps to Reproduce
npx sv createnpx @sentry/wizard@latest -i sveltekit --saas --org sample-org --project sample-projectExpected Result
Build shouldnt break
Actual Result
Build in Vercel Breaks with the following result