getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Webpack type error after updating from 6.13.2 to 6.13.3 #4039

Closed rchl closed 3 years ago

rchl commented 3 years ago

Package + Version

Version:

6.13.3

Description

After updating to the latest version getting this error in the project where I use typescript to type check the code:

node_modules/@sentry/webpack-plugin/index.d.ts:1:43 - error TS2724: '"webpack"' has no exported member named 'Compilation'. Did you mean 'compilation'?

1 import { Compiler, WebpackPluginInstance, Compilation } from 'webpack';
                                            ~~~~~~~~~~~

  node_modules/@types/webpack/index.d.ts:837:15
    837     namespace compilation {
                      ~~~~~~~~~~~
    'compilation' is declared here.

Found 1 error.
AbhiPrasad commented 3 years ago

This should be fixed by https://github.com/getsentry/sentry-webpack-plugin/pull/322 - will be available in the next release of the webpack plugin.

rchl commented 3 years ago

Thank you. Feel free to close it as you seem to already have an issue for tracking.