Skip to content

Sentry 9.x + svelte-adapter-azure-swa: build/package.json not found #15398

@ktarmyshov

Description

@ktarmyshov

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

9.0.1

Framework Version

"@sveltejs/kit": "^2.16.1", "svelte": "^5.19.6",

Link to Sentry event

No response

Reproduction Example/SDK Setup

hooks.server.ts

  // Initialize sentry
  Sentry.init({
    dsn: ....logging.sentryDsn,
    tracesSampleRate: 1,
    environment: ....mode,
  });

hooks.client.ts

  Sentry.init({
    dsn: .....sentryDsn,
    tracesSampleRate: 1,
    replaysSessionSampleRate: 0.1,
    replaysOnErrorSampleRate: 1,
    integrations: [Sentry.replayIntegration()],
    environment: .....mode,
  });

Steps to Reproduce

build with adapter: svelte-adapter-azure-swa
start locally swa emulator.

Expected Result

Should not fail just as 8.x does not fail.

Actual Result

fails while tries to read package.json, and the output of the adapter is different from what is expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: sveltekitIssues related to the Sentry SvelteKit SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions