Skip to content

Contradicting warnings between @sentry/astro and sentry-vite-plugin #18946

@pawelgrzybek

Description

@pawelgrzybek

Environment

"@sentry/astro": "^10.36.0",

Steps to Reproduce

I setup a basic astro build using Astro and using @sentry/astro as per Sentry documentation. When I set it up like this...

    sentry({
      project: "website",
    }),

I received this warning.

18:40:42 [WARN] [@sentry/astro] You passed in additional options (project) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your `sentry.client.config.(js|ts)` or `sentry.server.config.(js|ts)` files.

so i removed the project field, rerun and then I got this on the source maps upload phase.

[sentry-vite-plugin] Warning: No project provided. Will not create release. Please set the `project` option to your Sentry project slug.
computing gzip size (5)...[sentry-vite-plugin] Warning: No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug.

Expected Result

Warnings if any should be consistent and plugins that belong to the same family of framework should agree on the expected result. This is confusing for the end user.

Actual Result

Confusion as per my description.

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions