出现场景:从远程仓库拉取后出现报错首先是compilation. templatesPlugin is not a function,其次是出现Cannot read property ‘tapAsync‘ of undefined;
TypeError: compilation. templatesPlugin is not a function % building 2/2 modules 0 active(node:14196) DeprecationWarning: Tapable.plug
解决命令
npm add webpack@latest
接下来会出现 TypeError: Cannot read property ‘tapAsync‘ of undefined
解决命令
npm install webpack@4
出现报错具体原因没有搞明白,但是这两条命令可以解决你的报错。