autoprefixer-rails: ExecJS::ProgramError: TypeError: Object # has no method 'log2'

When I use autoprefixer-rails 9.0.2 I have the following error on assets precompilation:

       rake aborted!
       ExecJS::ProgramError: TypeError: Object #<Object> has no method 'log2'
       unpackSupport ((execjs):14780:36)
       (execjs):14794:28
       Array.reduce (native)
       (execjs):14792:70
       Array.reduce (native)
       unpackFeature ((execjs):14790:44)
       f ((execjs):20:10)
       Object.caniuse-lite ((execjs):88:1)
       o ((execjs):1:913)
       (execjs):1:964
       /vendor/bundle/ruby/2.5.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:39:in `exec'

This doesn’t appear with previous 8.x version.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 27 (13 by maintainers)

Most upvoted comments

Released in 9.1.1

I fixed it in caniuse-lite https://github.com/ben-eb/caniuse-lite/commit/baf3f7a825f62226efc27463ee2e05f6e52d3049

I will release it on next caniuse-db release