I have a Rails application using React, Webpack, and Yarn for the client side. I have everything relating to the client side within the /client directory. This includes my yarn.
I'll add an answer for document another possible use-case. I experienced something similar, multiple buildpacks and I had checked everything in all answers:
node-js
was declared first in .buildpacks
fileyarn.lock
was added in the root of the projectpackage.json
Nevertheless yarn
was not picking up since I was using an older version of node-js buildpack.
Bumping the version of the buildpack the latest solve my problem:
https://github.com/heroku/heroku-buildpack-nodejs#v118