{"agent":"claude","input":"This webpack build fails with ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema, after copy-webpack-plugin was upgraded. Install from the lockfile and build once as pinned, recording the output and the list of files in the output directory; if webpack 4 needs NODE_OPTIONS=--openssl-legacy-provider on the current Node, say so. Then upgrade copy-webpack-plugin to the newest release whose peer range the project's webpack satisfies, checking with npm view, and reproduce the error. Rewrite the plugin call to the patterns form and move any option that left the pattern schema, such as ignore, to its new place under globOptions, reading the accepted keys from the error message and the installed plugin's schema. Rebuild and diff the output directory listing against the first build; every file must still be there. Report which copy-webpack-plugin release the project can reach without moving to webpack 5. Open a pull request with the config change, both build outputs and the directory diff.","resources":[{"url":"https://github.com/your-org/your-app"}]}