i install this plugin with npm in my vue project,and configured in vue.config.js.when i start the project,it told me that 'TypeError: compilation.getCache is not a function' at 'copy-webpack-plugin\dist\index.js:459:33'
@Iffyyy I hit this after a fresh install npm i copy-webpack-plugin βΒ that'll install v7 of the plugin, which requires webpack 5. I'm not using webpack 5, and resolved by npm i copy-webpack-plugin@6.
Something stating "v6 of this plugin works with webpack v4" really needs to be added to the README.
Please do not ignore messages from package manager you need webpack@5 for latest version
Hi, i'm using [email protected] and [email protected] works charmingly [email protected].
For [email protected] and [email protected] still got error compilation.getCache.
@AzrizHaziq it means you still on webpack@4, run npm ls webpack
@alexander-akait
βββ¬ [email protected]
β βββ [email protected] deduped
βββ¬ [email protected]
β βββ [email protected] deduped
βββ¬ [email protected]
β βββ [email protected] deduped
βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ [email protected] deduped
βββ [email protected]
βββ¬ [email protected]
βββ¬ [email protected]
βββ [email protected] deduped
update webpack-cli to the 4 version
I think i mess up a little bit. I'm currently using lerna, and strangely it was using webpack@4.*.
Please ignore my previous comment π .
Thanks @alexander-akait.
Most helpful comment
Something stating "v6 of this plugin works with webpack v4" really needs to be added to the README.