The build is failing if there is a .yarnrc with --cwd at the root
Opened this issue · 1 comments
mupkoo commented
One of the things that I usually have when working on projects that have a frontend in a folder is to create a .yarnrc
file at the root of the project with --cwd
set to the folder of the assets. For example --cwd assets
. This allows you to run yarn commands without cd-ing into the folder first.
But having this, makes the build fail. The message the I get is
error Package "phoenix" refers to a non-existing file '"/app/deps/phoenix"'.
If I remove .yarnrc
file, the build works.
Here is my configuration for the buildpack
node_version=10.19.0
yarn_version=1.22.4
assets_path=assets/
compile="phoenix_static_build.sh"
where my phoenix_static_build.sh
is
cd $phoenix_dir
yarn --cwd assets/ build
mupkoo commented
I have tried putting .yarnrc
in the assets forlder with --cwd .
but it does not help