Project

General

Profile

Actions

Bug #17900

closed

unable to compile webpack compressed assets under NodeJS 0.10

Added by Ohad Levy over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Packaging
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

/home/foreman/git/foreman/node_modules/.bin/webpack --config /home/foreman/git/foreman/config/webpack.config.js --bail

zlib.js:167
    callback(null, buf);
    ^
TypeError: object is not a function
    at Gzip.onEnd (zlib.js:167:5)
    at Gzip.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:448:13)
rake aborted!

Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #16682: add compression to webpackClosedTomer Brisker09/25/2016Actions
Actions #1

Updated by Ohad Levy over 7 years ago

Actions #2

Updated by Ohad Levy over 7 years ago

This is on an EL6 host, I assume a node / npm package version issue?

Actions #3

Updated by Dominic Cleal over 7 years ago

  • Subject changed from unable to complie webpack compressed assets. to unable to compile webpack compressed assets.

I assume a node / npm package version issue?

So what are the node/npm versions you're using? CI tests are fine.

Does this still occur after npm up?

Actions #4

Updated by Ohad Levy over 7 years ago

Dominic Cleal wrote:

I assume a node / npm package version issue?

So what are the node/npm versions you're using? CI tests are fine.

npm version { TheForemanDevDeps: '1.15.0',
npm: '4.0.5',
ares: '1.9.1',
http_parser: '2.0',
modules: '11',
node: '0.10.40',
openssl: '1.0.1e-fips',
uv: '0.10.30',
v8: '3.14.5.10',
zlib: '1.2.3' }

Does this still occur after npm up?

yes.

Actions #5

Updated by Tomer Brisker over 7 years ago

This is indeed due to node version, you are using 0.10.
Our builders have all been upgraded to use newer versions, which is why this doesn't break on CI.

Actions #6

Updated by Dominic Cleal over 7 years ago

  • Subject changed from unable to compile webpack compressed assets. to unable to compile webpack compressed assets under NodeJS 0.10
  • Category set to Packaging
Actions #7

Updated by Tomer Brisker over 7 years ago

  • Status changed from New to Resolved

Update the manual to indicate that nodejs >= 4.x is required for source installs.
More and more modules are breaking or requiring significant workarounds on node 0.10 which was first released 4 years ago and ended maintenance mode already after an extended LTS.
Since node is only required for building the assets and not for running foreman in production, there is no reason to support older versions. Closing this issue.

Actions

Also available in: Atom PDF