Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tapable.plugin is deprecated #176

Closed
ederchrono opened this issue Apr 20, 2018 · 2 comments
Closed

Tapable.plugin is deprecated #176

ederchrono opened this issue Apr 20, 2018 · 2 comments

Comments

@ederchrono
Copy link

  • 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
@ederchrono
Copy link
Author

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

@dabit3
Copy link

dabit3 commented Sep 8, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants