TypeError: compilation.getCache is not a function

degrade to it’s previous version “copy-webpack-plugin”: “^6.3.2”