0
点赞
收藏
分享

微信扫一扫

compilation.templatesPlugin is not a function

十里一走马 2022-12-23 阅读 47

 

ERROR Failed to compile with 1 error
TypeError: compilation.templatesPlugin is not a function

- SetVarMainTemplatePlugin.js:17 SetVarMainTemplatePlugin.apply
[Web]/[webpack]/lib/SetVarMainTemplatePlugin.js:17:15

 

原因是:

你的webpack不是最新版本

解决办法:
npm add webpack@latest



举报

相关推荐

0 条评论