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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
kunyan opened this issue May 23, 2024 · 1 comment
Labels
Package: astro Issues related to the Sentry Astro SDK

Comments

@kunyan
Copy link

kunyan commented May 23, 2024

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'

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 23, 2024
@github-actions github-actions bot added the Package: astro Issues related to the Sentry Astro SDK label May 23, 2024
@timfish
Copy link
Collaborator

timfish commented May 23, 2024

This is a duplicate of #12059.

I'll change the name to make it easier to find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: astro Issues related to the Sentry Astro SDK
Projects
Archived in project
Development

No branches or pull requests

2 participants