[DRE-maint] Bug#998253: ExecJS::ProgramError: TypeError: Cannot read property 'env' of undefined

Dragos Jarca dragos.jarca at dynamicpuzzle.ro
Fri Nov 5 19:42:14 GMT 2021


Hi

Now seems to be stack here:

+ echo Webpacking...
Webpacking...
+ runuser -u gitlab -- sh -c NODE_ENV="production" 
NODE_PATH="node_modules" NODE_OPTIONS="--max-old-space-size=4096" 
webpack --config config/webpack.config.js
CLI for webpack must be installed.
   webpack-cli (https://github.com/webpack/webpack-cli)

We will use "yarn" to install the CLI via "yarn add -D webpack-cli".
Do you want to install 'webpack-cli' (yes/no): yes

Best regards,
Dragos Jarca
On 04.11.2021 14:16, Pirate Praveen wrote:
 >
> Control: reassign -1 libjs-autoprefixer
>
> Control: affects -1 gitlab
>
> On 4/11/21 3:19 AM, Pirate Praveen wrote:
> > On Mon, 01 Nov 2021 19:07:19 +0200 Dragos Jarca
> > <dragos.jarca at dynamicpuzzle.ro> wrote:
> >> Package: gitlab
> >> Version: 14.2.6+ds1-1
> >> Severity: grave
> >> Justification: renders package unusable
> >>
> >> Dear Maintainer,
> >>
> >> Upgrade gitlab to 14.2.6+ds1-1 fail with error:
> >>
> >> Precompiling assets...
> >> + runuser -u gitlab -- sh -c /usr/bin/bundle exec rake
> tmp:cache:clear assets:precompile
> >>
> >> rake aborted!
> >> ExecJS::ProgramError: TypeError: Cannot read property 'env' of 
> undefined
> >> browserslist ((execjs):63463:17)
> >> Browsers.parse ((execjs):65564:13)
> >> new Browsers ((execjs):65552:27)
> >> loadPrefixes ((execjs):74643:23)
> >> Object.prepare ((execjs):74657:23)
> >> (execjs):60521:40
> >> Array.map (<anonymous>)
> >> new LazyResult ((execjs):60519:44)
> >> Processor$1.process ((execjs):60920:13)
> >> process ((execjs):74707:62)
> >>
> /usr/share/rubygems-integration/all/gems/autoprefixer-rails-10.3.1.0/lib/autoprefixer-rails/processor.rb:35:in
> `process'
> >>
> /usr/share/rubygems-integration/all/gems/autoprefixer-rails-10.3.1.0/lib/autoprefixer-rails/sprockets.rb:22:in
> `run'
> >>
> /usr/share/rubygems-integration/all/gems/autoprefixer-rails-10.3.1.0/lib/autoprefixer-rails/sprockets.rb:16:in
> `call'
> >> /usr/share/rubygems-integration/all/gems/rake-13.0.3/exe/rake:27:in
> `<top (required)>'
> >> Tasks: TOP => assets:precompile
> >> (See full trace by running task with --trace)
> >> dpkg: error processing package gitlab (--configure):
> >>   installed gitlab package post-installation script subprocess
> returned error exit status 1
> >>
> >> Please help me to solve this situation.
>
> > I was able to reproduce the issue, but not yet sure what broke it. This
> > seems to be caused by node-browserslist but will need to confirm.
>
> Seems like libjs-autoprefixer is broken. Installing autoprefixer-rails
> from rubygems.org fixes this issue. So until we fix the package, you can
> use this workaround.
>
> # gem install -v 10.3.1.0 autoprefixer-rails
>
 >



More information about the Pkg-ruby-extras-maintainers mailing list