opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
46 stars 0 forks source link

Sveltekit: Build error with Sentry #192

Open testvinder opened 2 months ago

testvinder commented 2 months ago

When having both Paraglide and Sveltekit installed I'm getting this build error. Have anyone experienced anything similar or know why it might happening? It happens both when building locally and in production.

error during build:
[vite:load-fallback] Could not load /vercel/path0/src/paraglide/sentry-release-injection-file (imported by src/paraglide/messages.js): The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/vercel/path0/src/paraglide/\x00sentry-release-injection-file'
TypeError [PLUGIN_ERROR]: Could not load /vercel/path0/src/paraglide/sentry-release-injection-file (imported by scr/paraglide/messages.js): The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/vercel/path0/src/paraglide/\x00sentry-release-injection-file'
    at open (node:internal/fs/promises:636:10)
    at Object.readFile (node:internal/fs/promises:1249:20)
    at Object.load (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-Cy9twKMn.js:64973:35)
    at async PluginDriver.hookFirstAndGetPlugin (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:19494:28)
    at async file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:18665:33
    at async Queue.work (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:19704:32)
Error: Command "npm run build" exited with 1
SaintPepsi commented 2 months ago

I was having this as well, had to not include the sentry plugin for the time being

chadsr commented 1 month ago

Seeing this as well.

chbert commented 1 month ago

same here

martinhjartmyr commented 4 days ago

Seeing this error as well when trying to add Sentry to my project. Any updates?

vite dev - works fine vite build - fails with error above