Skip to content

@sentry/deno package not properly installing on Deno run #9478

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
deeplyfriedchicken opened this issue Nov 7, 2023 · 1 comment · Fixed by #9485
Closed
3 tasks done

@sentry/deno package not properly installing on Deno run #9478

deeplyfriedchicken opened this issue Nov 7, 2023 · 1 comment · Fixed by #9485
Labels
Package: node Issues related to the Sentry Node SDK

Comments

@deeplyfriedchicken
Copy link

deeplyfriedchicken commented Nov 7, 2023

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.77.0

Framework Version

Deno v1.37.2

Link to Sentry event

No response

SDK Setup

import * as Sentry from "npm:@sentry/deno";
  Sentry.init({
    dsn: SENTRY_DSN,
    env: NODE_ENV,
    tracesSampleRate: 0.1,
  });

Steps to Reproduce

  1. Follow install steps on https://deno.land/x/[email protected]
  2. deno run --allow-read --allow-net --allow-env --allow-sys --allow-run main.ts
    a. Where main.ts has the npm:@sentry/deno import

Expected Result

Should not result in an error, Deno isn't properly installing the Sentry module

Actual Result

error: 'import', and 'export' cannot be used outside of module code at file:///Users/kevin/Library/Caches/deno/npm/registry.npmjs.org/@sentry/deno/7.77.0/index.js:9520:1
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Nov 7, 2023
@github-actions github-actions bot added the Package: node Issues related to the Sentry Node SDK label Nov 7, 2023
@lforst
Copy link
Contributor

lforst commented Nov 8, 2023

Thanks for writing in. We'll fix this!

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

Successfully merging a pull request may close this issue.

2 participants