Skip to content

[@sentry/vite-plugin] Benign log messages are being printed as errors (which fail the build) #650

Closed as duplicate
@kaiyoma

Description

@kaiyoma

Environment

Vite: 5.4.10
@sentry/vite-plugin: 2.22.7

Steps to Reproduce

  1. Build Vite and upload source maps to Sentry

Expected Result

Success

Actual Result

In the build output, there are some log messages that sound benign, but they're being printed as errors, which is causing our build to fail:

11:07:56  [log] vite v5.4.10 building for production...
11:07:56  [error] [sentry-vite-plugin] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
11:07:56  [log] transforming...

...

11:14:54      ~/dc706d4e-4b5e-44ff-8cf6-8f34254584a3-12.js.map (debug id dc706d4e-4b5e-44ff-8cf6-8f34254584a3)
11:14:54  [error] [sentry-vite-plugin] Info: Successfully uploaded source maps to Sentry
11:14:54  [log] ✓ built in 6m 58s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions