Path must be a string. Received true

今天遇到一个问题,webpack运行的时候老是报Path must be a string. Received true,Path must be a string. Received true_第1张图片

网上搜索了各种方法都没解决,最后不得不重启一个新的项目发现还是有问题,最后在尝试各种解决方法后偶然间发现自己在package.json里的scripts的dev写错了。本应该是

webpack --config webpack.dev.config.js的,写成了webpack -config webpack.dev.config.js 修改后运行便不报错了。

转载于:https://www.cnblogs.com/shengliang74/p/11221231.html

你可能感兴趣的:(Path must be a string. Received true)