johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building
MIT License
1.96k stars 136 forks source link

Outdated version of package "del" causes TypeScript project compile failures #207

Open josundt opened 1 year ago

josundt commented 1 year ago

Issue description or question

clean-webpack-plugin's dependency to package "del": "^4.1.1" now causes TypeScript compilation failure in projects that has a more recent version of glob or minimatch installed.

del<=4.1.1 pulls in and outdated version of @types/glob as dependency - this should have been a devDependency. This has been fixed in more recent version of del.

Right now, clean-webpack-plugin causes TypeScript build failure unless skipLibCheck compiler option is set to true. Please fix by updating del to a latest (or more recent) version!

TripleSpeeder commented 5 months ago

As this seems pretty much unmaintained, any recommendations how to work around? Is there a for existing with this issue solved?

josundt commented 5 months ago

@TripleSpeeder You can set output.clean to true in webpack config instead now....