Skip to content

参考知识 19/1000 Reference Knowledge 19/1000 Translation Machine · General Field Local operation is normal, but an error message appears during build 划译 机翻 · 通用领域 Local operation is normal, but an error message appears during build #17178

@Itmarz

Description

@Itmarz

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/astro

SDK Version

9.0

Framework Version

Astro 4.13.1

Link to Sentry event

No response

Reproduction Example/SDK Setup

[vite:load-fallback] Could not load /Users/zzj/Desktop/QD/dm/src/paraglide/sentry-release-injection-file (imported by src/paraglide/messages.js): The argument 'path' must be a string or Uint8Array without null bytes. Received '/Users/zzj/Desktop/QD/dm/src/paraglide/\x00sentry-release-injection-file'

Steps to Reproduce

When I run it locally, it is normal. I don't know if it was caused by Vite during the build process. He keeps reporting errors

astro.config.mjs
integrations: [
sentry({
autoInstrumentation: {
requestHandler: false,
},
sourceMapsUploadOptions: {
telemetry: false,
project: "linky-astro",
authToken: "sntrys_eyJpYXQiOjE3Nxxx",
},

})

]

sentry.client.config.js

import * as Sentry from "@sentry/astro";

Sentry.init({
dsn: "https://[email protected]/5",
sendDefaultPii: true,
});

https://docs.sentry.io/platforms/javascript/guides/astro/

Expected Result

no error

Actual Result

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions