Skip to content

Regression: @sentry/astro stopped re-exporting captureException in 8.8.0 #12410

Closed
@arty-name

Description

@arty-name

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/astro

SDK Version

8.8.0

Framework Version

4.10.0

Link to Sentry event

No response

SDK Setup

  integrations: [
    sentry({
      enabled: { client: false, server: true },
      tracePropagationTargets: [],
    }),
  ],

Steps to Reproduce

  1. Upgraded the SDK to the latest version to address Node SDK generating Error: ENOENT: no such file or directory #12059 and Astro integration follow the guide will get a error ENOENT: no such file or directory, open '/Users/xxx/astro-project/node_modules/@sentry/astro/esm/@sentry/node' #12192
  2. Tried accessing captureException in different ways:
import { captureException } from '@sentry/astro';
import * as Sentry from '@sentry/astro';
(await import('@sentry/astro')).captureException;

Expected Result

captureException should be available and usable, since the TypeScript types for the SDK mark it as present

Actual Result

Logging Sentry.captureException prints undefined, the property is absent from Sentry, seems not to be properly re-exported, while many other members of Sentry are present. I can access captureException when importing it directly from @sentry/node.

Metadata

Metadata

Assignees

Labels

Package: astroIssues related to the Sentry Astro SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions