Skip to content

[SvelteKit] Vite dev server won't start up after updating to v6.0.1 #14516

Open

Description

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

8.41.0

Framework Version

SvelteKit 2.8.5

Link to Sentry event

No response

Reproduction Example/SDK Setup

Sentry.init({
	enabled: variables.SENTRY_ENABLED,
	dsn: variables.SENTRY_DSN,
	environment: variables.SENTRY_ENVIRONMENT,
	tracesSampleRate: variables.SENTRY_TRACES_SAMPLE_RATE
});

Steps to Reproduce

Upgrade to Vite > 6.x
Start SvelteKit dev server

Expected Result

There should be no Error on starting the dev server, using vite 6.X.

Actual Result

After upgrading ti vite > 6.x I am getting the follwing error after starting the dev server:

Error: Failed to resolve entry for package "@sentry/sveltekit". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@sentry/sveltekit" package

After downgrading to vite 5.x again, the Error seems to be gone.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    Projects

    • Status

      Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions