-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
BugPackage: sveltekitIssues related to the Sentry SvelteKit SDKIssues related to the Sentry SvelteKit SDK
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
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/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:65091:35)
at async PluginDriver.hookFirstAndGetPlugin (file:///vercel/path0/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:20836:28)
at async file:///vercel/path0/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19956:33
at async Queue.work (file:///vercel/path0/node_modules/.pnpm/[email protected]/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
Metadata
Metadata
Assignees
Labels
BugPackage: sveltekitIssues related to the Sentry SvelteKit SDKIssues related to the Sentry SvelteKit SDK
Projects
Status
No status