This is my plugin configuration:
new CopyWebpackPlugin([
{ from: 'src/image', to: 'image' },
{ from: 'src/vendor', to: 'vendor' }
])
It works fine with node v 5.8.1 but it does not copy any file with node v 6.0.0.
Webpack shows 'ERROR in Path must be a string. Received undefined' in the console.
Hi, I used 1.1 version before. I just tested with the newest version 2.1.3, still get the same problem.
This is because we use gulp to build underneath, which has an underlying issue: https://github.com/gulpjs/gulp/issues/1571
I guess in the meantime it would be good to warn people in the readme of this issue (that the plugin is not compatible with node v6) - and/or additionally providing a meaningful error message in the webpack output (e.g. "CopyWebpackPlugin is not yet compatible with Node v6"). Nailing down the issue of why my relatively complex webpack build was failing due to this plugin was really not a quick one...
any news with this bug?
This should be resolved in v2.1.4
I am using node v 6.0.0 and not getting major issues. I have not fully got what I needed fixed with an error like Cannot read property 'glob' of undefined but this isnt all the time...
I am using node 0.12 & I am having this issue
any news with this issue?
same on node v8.0
Same here on v8.10.0
@christopherallanperry can you create new issue and create minimum reproducible test repo?
@evilebottnawi in the process of creating the repo, I was able to resolve whatever was causing the problem, though I'm unsure how. Apologies for any inconvenience caused.
Most helpful comment
I guess in the meantime it would be good to warn people in the readme of this issue (that the plugin is not compatible with node v6) - and/or additionally providing a meaningful error message in the webpack output (e.g. "CopyWebpackPlugin is not yet compatible with Node v6"). Nailing down the issue of why my relatively complex webpack build was failing due to this plugin was really not a quick one...