Skip to content

"authToken" not provided despite being available during vite build #19523

@The-LukeZ

Description

@The-LukeZ

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

10.40.0

Framework Version

Sveltekit 2.49.3

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Have Sveltekit project
  2. Run the setup wizard for sveltekit sdk
  3. Store SENTRY_AUTH_TOKEN in .env
  4. build (pnpm run build) which triggers vite build

Expected Result

Sourcemap uploads should work

Actual Result

[sentry-vite-plugin] Warning: No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[sentry-vite-plugin] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/

Additional Context

I just updated my project and the SDK to the latest version.

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions