EDIT: TL;DR I fixed this, silly error on my part...if you run into the same error, it's because the buildpacks aren't set correctly. In my case, I had set the buildpack on the wrong Heroku app. More at https://github.com/shakacode/react_on_rails/blob/master/docs/tutorial.md#deploying-to-heroku
Hats off to everyone that's involved in React on Rails - I'm setting it up for a project and digging it big time! So far I have Hello World working locally but the old push to Heroku fails with the following error:
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: /tmp/build_8ea5df0fb3e8548cbb57c315cd6668c0/vendor/bundle/ruby/2.2.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: duplicated key at line 80 ignored: "name"
remote: cd client && npm run build:client
remote: sh: 1: npm: not found
remote: rake aborted!
remote: Command failed with status (127): [cd client && npm run build:client...]
remote: /tmp/build_8ea5df0fb3e8548cbb57c315cd6668c0/lib/tasks/assets.rake:17:in 'block (2 levels) in <top (required)>'
remote: Tasks: TOP => assets:precompile => assets:compile_environment => assets:webpack
remote: (See full trace by running task with --trace)
remote: ! Precompiling assets failed.
remote: ! Push rejected, failed to compile Ruby app
Seems error code 127 relates to NPM not being installed - but I haven't touched package.json so I'm not sure why Heroku might have missed installing it.
Has anyone run into this or have any suggestions on what's being done wrong?