Skip to content

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

Closed
@kunyan

Description

@kunyan

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/astro

SDK Version

8.3.0

Framework Version

Astro 4.9.0

Link to Sentry event

No response

SDK Setup

sentry({
      dsn: __DSN__,
      sourceMapsUploadOptions: {
        project: __MY_PROJECT__,
        authToken: proccess.env.SENTRY_AUTH_TOKEN,
      },
    }),

Steps to Reproduce

Follow the guide https://docs.sentry.io/platforms/javascript/guides/astro/

my astro config is

export default defineConfig({
  output: "server",
  adapter: node({
    mode: "standalone",
  }),
  integrations: [
    react(),
    sentry({
      dsn: __DSN__,
      sourceMapsUploadOptions: {
        project: __MY_PROJECT__,
        authToken: proccess.env.SENTRY_AUTH_TOKEN,
      },
    })]
})

Expected Result

No Error

Actual Result

ENOENT: no such file or directory, open '/Users/xxx/astro-project/node_modules/@sentry/astro/esm/@sentry/node'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: astroIssues related to the Sentry Astro SDK

    Type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions