Skip to content

Due to a packaging issue the gatsby plugin fails silently and Sentry.init() is never called #2706

@klittlepage

Description

@klittlepage

Package + Version

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

Version:

5.18.1

Description

As it stands gatsby-browser.js and gatsby-node.js aren't properly packaged into
the @sentry/gatsby distribution. Because of this Sentry.init() is never called
and the Sentry module is never bound to the window - loading the plugin is
effectively a nop. Unfortunately, the failure is silent.

Gatsby expects plugins to expose gatsby-(browser|node|ssr)\.js as
siblings of package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions