Skip to content

Paraglide + Sentry breaks build in Vercel #14980

@jerriclynsjohn

Description

@jerriclynsjohn

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

  1. Create a bare-bones SvelteKit project with paraglide demo using npx sv create
  2. 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 SDK

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions