webpack报错Cannot read property 'presetToOptions' of undefined

在学习react全家桶时,webpack首先报错,报错内容如下,最后我是因为没有全局安装webpack导致的报错,使用npm install webpack -g安装解决了这个问题。webpack报错Cannot read property 'presetToOptions' of undefined_第1张图片

 

转载于:https://www.cnblogs.com/Cindy-Zhang44/p/9234225.html

你可能感兴趣的:(webpack报错Cannot read property 'presetToOptions' of undefined)