Vuepress: Tapable.plugin is deprecated

Created on 20 Apr 2018  路  2Comments  路  Source: vuejs/vuepress

  • Mac OS High Sierra
  • Node.js version: 8.6.0
  • VuePress version: ^0.7.0
  • Browser version: Chrome latest
  • Is this a global or local install? Local
  • Which package manager did you use for the install? Yarn

Repo for reproduction: https://github.com/ederchrono/vue-css-grid/tree/bug/vuepress-tapable-error

When running vuepress shows this warning:

$ vuepress dev docs
Extracting site metadata...(node:13230) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

Followed by these errors after building:

ERROR in   TypeError: compilation.templatesPlugin is not a function

  - SetVarMainTemplatePlugin.js:17 SetVarMainTemplatePlugin.apply
    [vue-css-grid]/[webpack]/lib/SetVarMainTemplatePlugin.js:17:15

  - Tapable.js:71 Compilation.apply
    [vue-css-grid]/[tapable]/lib/Tapable.js:71:16

  - util.js:52 Compilation.deprecated [as apply]
    internal/util.js:52:15
... more errors

Most helpful comment

Found the problem, I'm not an active yarn user so I had an old version.
For the record if anyone finds this message upgrade at least to yarn v1.6.0

All 2 comments

Found the problem, I'm not an active yarn user so I had an old version.
For the record if anyone finds this message upgrade at least to yarn v1.6.0

For anyone here with the same issue, upgrading to webpack to 4.39.3 fixed it for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ederchrono picture ederchrono  路  3Comments

kid1412621 picture kid1412621  路  3Comments

alinnert picture alinnert  路  3Comments

cfjedimaster picture cfjedimaster  路  3Comments

lileiseven picture lileiseven  路  3Comments