Skip to content

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

Closed
@deeplyfriedchicken

Description

@deeplyfriedchicken

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions