-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: CleanWebpackPlugin is not a constructor #143
Comments
I have the same error. To fix use
instead of
so docs is broken. I see that this was changed 6 days ago in d0e3408 and described in #114 Last release v2.0.2 is from 22 days ago · 20 commits to master since this release So everything clear. In official Readme is described how to install next (not released) version, but it is breaking change so in my opinion it should not be merged into master but in branch Anyway: if you have this error now use
for last released version v2.0.2 |
Other solution is change default displayed branch from master to |
@gustawdaniel it's right |
It is normal for a github project's readme to be out of date with what is published on npm. Either use github tags or view the readme from the npm page. |
released fixed in |
- Added html-loader to automatically require the files we reference in img tags - Added file-loader to handle the svg,png,jpg,gif files from our images - Configured file-loader to add our images to an imgs directory in dist - Also configured it to add a hash to their filenames - Lastly, added clean-webpack-plugin to our production config to clean out the dist directory each time we build
Issue description or question
In the docs is wrong the way get the plugin variable, it's distructuring the module unnecessarily:
Doing that way, triggers this error:
The right is:
Webpack Config
Environment
Run:
npx envinfo --system --binaries --npmPackages clean-webpack-plugin,webpack
Please, test the things before put in the docs and test the installation of module before publish it to Github because it can confuse the users, thanks!
The text was updated successfully, but these errors were encountered: