Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Webpack 5 types issue #258

@knownun

Description

@knownun

Environment

How do you use Sentry?
Sentry SaaS (sentry.io)

Which SDK and version?
"@sentry/react": "^6.1.0",
"@sentry/tracing": "^6.1.0",
"@sentry/webpack-plugin": "^1.14.0",

Steps to Reproduce

  1. Project using webpack5 and TypeScript files for webpack configs
  2. Use SentryWebpackPlugin
  3. Try to run webpack config with tsc
  4. Get an error

Expected Result

It will work

Actual Result

node_modules/@sentry/webpack-plugin/index.d.ts:1:10 - error TS2305: Module '"../../webpack/types"' has no exported member 'Plugin'.

1 import { Plugin, Compiler } from 'webpack';
           ~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    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