npm run dev fails : ValidationError: Invalid options object

前端 未结 6 883
梦如初夏
梦如初夏 2020-12-30 19:35

Currently learning Vue js and express js through some tutorials, I am still newbie regarding these technologies.

Anyway following the tutorials I am building a smal

6条回答
  •  醉酒成梦
    2020-12-30 20:19

    If you upgrade to copy-webpack-plugin: ^6.0.3 in your package.json then following should work, when you previously copied a whole directory:

    plugins: [
        new CopyWebpackPlugin({
            patterns: [
                {
                    from: "[your-src-dir]/*",
                    to: "[your-dst-dir]/*",
                },
            ],
        }),
    ]
    

    adding /* after directory target and source directory name fixed it without ignoring vulnerability, which you should never do.

    Take a look at https://webpack.js.org/plugins/copy-webpack-plugin/ for more.

提交回复
热议问题