Skip to content

Stack trace context broken using Node native ESM #3262

Closed
@richardsimko

Description

@richardsimko

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

6.1.0

Description

When importing modules using Node's native ESM support which was taken out of preview in Node 14.0 code preview in Sentry issues have stopped working entirely.

Minimal example https://github.com/richardsimko/sentry-esm

I'm guessing it has something to do with how Sentry hooks in to the Common JS module loader in Node and since ESM uses a different loader the same hooks may be needed there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions