With an upgrade in copy-webpack-plugin to v6.0.3 , resulted to an error
``Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
options[0] has an unknown property 'to'. These properties are valid:
object { patterns, options? }
ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
`
The error is thrown when the dependency is upgraded to a version higher than v5.1.2 .
With an upgrade in
copy-webpack-plugin
to v6.0.3 , resulted to an error``Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.