webpacker: Heroku: can't find executable webpack for gem webpacker (Gem::Exception)
After upgrading to the master branch of this repository, I get the following error when compiling on Heroku:
Compiling…
Compilation failed:
/tmp/build_d4da645e5840bc32169cdef3aecaed44/jonhue-jonhue-97c0597/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:432:in `block in replace_bin_path': can't find executable webpack for gem webpacker (Gem::Exception)
from /tmp/build_d4da645e5840bc32169cdef3aecaed44/jonhue-jonhue-97c0597/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:463:in `block in replace_bin_path'
from ./bin/webpack:29:in `<main>'
!
! Precompiling assets failed.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 28 (3 by maintainers)
Please run
bundle exec rails webpacker:binstubsand commit binstubs to heroku.Why was a breaking change introduced in a minor version?
@AlexandrePerdomo Are you sure you are installing latest version of webpacker and npm package?
Are you able to compile locally?
Same for AWS
Elastic Beanstalk, after upgradingwebpackerfrom 3.2.x to 3.3.x you have to update binstubs withbundle exec rails webpacker:binstubsUPDATE: opps, it’s actually written in the CHANGELOG.
Sorry for the noise. Basically what was suggested above works. We just have to run
rails webpacker:binstubsin all packages that require webpacker. Thanks. 😃