I’ve a test Rails app with Stimulus installed running successfully locally, but I’m having trouble deploying it to Heroku. Do you have any advice in general on what I need look out for?
I’m getting this error:
Precompiling assets failed. Push rejected, failed to compile Ruby app.
This part of build seems relevant:
remote: [3/5] Fetching packages... remote: info fsevents@1.2.4: The platform "linux" is incompatible with this module. remote: info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation. remote: [4/5] Linking dependencies... remote: warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697" remote: warning " > webpack-dev-server@2.11.2" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0". remote: warning "webpack-dev-server > webpack-dev-middleware@1.12.2" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0". remote: [5/5] Building fresh packages... remote: Done in 24.59s. remote: I, [2018-12-09T03:11:05.060948 #2441] INFO -- : Writing /tmp/build_30ce1fff22e15a6dc5ae1d0bfbbd3991/public/assets/application-9622f0fe63bfad91bdeaa3a771e86262263840678fd66849b311b6cfb3f7cc85.js remote: I, [2018-12-09T03:11:05.061333 #2441] INFO -- : Writing /tmp/build_30ce1fff22e15a6dc5ae1d0bfbbd3991/public/assets/application-9622f0fe63bfad91bdeaa3a771e86262263840678fd66849b311b6cfb3f7cc85.js.gz remote: I, [2018-12-09T03:11:05.073662 #2441] INFO -- : Writing /tmp/build_30ce1fff22e15a6dc5ae1d0bfbbd3991/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css remote: I, [2018-12-09T03:11:05.073792 #2441] INFO -- : Writing /tmp/build_30ce1fff22e15a6dc5ae1d0bfbbd3991/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css.gz remote: rake aborted!