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

TypeError: util.promisify is not a function #150

Closed
Jamesking56 opened this issue Jan 22, 2020 · 2 comments · Fixed by #151
Closed

TypeError: util.promisify is not a function #150

Jamesking56 opened this issue Jan 22, 2020 · 2 comments · Fixed by #151

Comments

@Jamesking56
Copy link

  • Operating System: Ubuntu 18.04 LTS
  • Node Version: v6.14.1
  • NPM Version: v6.13.6
  • webpack Version: 4.41.5 (usage via Symfony Encore)
  • compression-webpack-plugin Version: 3.1.0

Expected Behavior

Running encore production builds successfully.

Actual Behavior

encore production fails with:

TypeError: util.promisify is not a function

Code

Usage is with Symfony encore, so essentially its this:

let CompressionPlugin = require('compression-webpack-plugin')

Encore
	.addPlugin(new CompressionPlugin())


... lots more stuff ...

Which matches your Readme.

How Do We Reproduce?

Try following your Readme in Node v6.14.1, I believe this is a BC-break that has happened. This only started happening after I upgraded from 2.0.0.

Your Readme states This module requires a minimum of Node v6.9.0 and Webpack v4.0.0. which I am still meeting.

@alexander-akait
Copy link
Member

We don't support node@6 https://github.com/webpack-contrib/compression-webpack-plugin/blob/master/package.json#L16, please update node version

@alexander-akait
Copy link
Member

We need fix the README file

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

Successfully merging a pull request may close this issue.

2 participants