`watch` script error after initial install
slikts opened this issue · 1 comments
slikts commented
I cloned the repo, ran npm i
, then npm run watch
, and it exits with this error:
CopyPlugin Invalid Options
options.0 should be string
options.0.ignore should be array
options.0 should match some schema in anyOf
It's not clear what it's validating or what the steps to resolve this would be.
ha-D commented
There's an error in the CopyWebpackPlugin
options which causes problems in newer versions of the plugin. This should fix it:
Open the webpack.config.js file and change the line
new CopyWebpackPlugin([
{
...
ignore: '*.js'
},
...
])
to:
new CopyWebpackPlugin([
{
...
ignore: ['*.js']
},
...
])