Error writing
const CleanWebpackPlugin = require("clean-webpack-plugin");
Correct wording:
let {CleanWebpackPlugin} = require('clean-webpack-plugin');
The new version of the clean-webpack-plugin to get into the bag by the method of CleanWebpackPlugin constructor