Skip to content

sentryEsbuildPlugin is not a function #161

Description

@senordelaflor

Environment

Sentry esbuild plugin version 0.3.0 run on esbuild 0.16.12

Steps to Reproduce

Followed the usage guide in https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/esbuild-plugin

// esbuild.config.js
const sentryEsbuildPlugin = require("@sentry/esbuild-plugin");

require("esbuild").build({
  plugins: [
    sentryEsbuildPlugin({
      include: ".",
      ignore: ["node_modules", "esbuild.config.js"],
      org: process.env.SENTRY_ORG,
      project: process.env.SENTRY_PROJECT,
      authToken: process.env.SENTRY_AUTH_TOKEN,
    }),
  ],
});

Expected Result

Sentry plugin would run

Actual Result

It broke the build with error TypeError: sentryEsbuildPlugin is not a function

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions