Cannot read property 'properties' of undefined

时间:2021-01-13 16:10:54

Cannot read property 'properties' of undefined
今天运行一个很有意思的项目,报上面的错
根据报错,可以发现,报错出现在项目文件夹下的node_modules\webpack-cli\bin\config-yargs.js文件第89行。
Cannot read property 'properties' of undefined
当前webpack-cli的版本为2.1.3,当前webpack版本为4.20.2。查看webpack 的release log,发现
Cannot read property 'properties' of undefined
所以我直接将webpack-cli变成了3.1.1
Cannot read property 'properties' of undefined
重新npm install 就可以完美的运行项目啦~~~
Cannot read property 'properties' of undefined