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

Add support for webpack@5#233

Closed
pastak wants to merge 1 commit intogetsentry:masterfrom
pastak:patch-1
Closed

Add support for webpack@5#233
pastak wants to merge 1 commit intogetsentry:masterfrom
pastak:patch-1

Conversation

@pastak
Copy link
Copy Markdown

@pastak pastak commented Oct 14, 2020

I have updated to webpack@5 then tsc failed to check.

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

so webpack@5 have type definition file and it doesn't export Plugin but it seems to use WebpackPluginInstance. ref: webpack/webpack#11630 (comment)

I think it doesn't have compatibility webpack@4 so you should treat this change as a breaking change.

webpack@5 have [type definition file](https://github.com/webpack/webpack/blob/master/types.d.ts) and it doesn't export `Plugin` but it seems to use ` WebpackPluginInstance`.
@knownun
Copy link
Copy Markdown
Contributor

knownun commented Feb 18, 2021

Can't use it with webpack 5 either
`
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';
~~~~~~

`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants