Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The build is failing if there is a .yarnrc with --cwd at the root #107

Open
mupkoo opened this issue Apr 28, 2020 · 1 comment
Open

The build is failing if there is a .yarnrc with --cwd at the root #107

mupkoo opened this issue Apr 28, 2020 · 1 comment

Comments

@mupkoo
Copy link

mupkoo commented Apr 28, 2020

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
Copy link
Author

mupkoo commented Apr 28, 2020

I have tried putting .yarnrc in the assets forlder with --cwd . but it does not help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant