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"'.
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
If I remove
.yarnrc
file, the build works.Here is my configuration for the buildpack
where my
phoenix_static_build.sh
is