-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Deploy failing due to the switch to Yarn and not installing devDependencies #356
Comments
https://devcenter.heroku.com/articles/nodejs-support#devdependencies should probably be updated to reflect that Yarn does not honour For now, I've added |
Hey @bjeanes! Yarn now supports |
@hunterloftis does the My use case is I have |
This issue will in fact only be resolved in the next release of yarn (current is 0.18.1), which this PR should be a part of. |
@hunterloftis this still seems to be happening. I've set:
And when I try to build and deploy a "review" environement I still get How can we accomplish this other than just dumping all |
ok.. odd.. on the same "review" environment config, I have the "parent app" set to my staging environment config. I assumed that would mean that it would "inherit" it's config vairables from that app where I have the following set:
But if I go into the app (after it's failed to build) and view "settings" and "reveal config vars", the only value set there is All the rest aren't there. Am I wrong in how I'm attempting to accomplish this? How do we set config vars for "review" apps?? |
@RavenHursT You can define env variables for review apps in If you're having difficulty please open a ticket at https://help.heroku.com/, and we'll get it sorted :) |
Thanks for responding @jmorrell... I just got it working by doing, just that. I think the problem was the UI in Heroku, when enabling review apps says to "inherit config vars from:"... and you choose the env in your pipeline you want that to happen with. There's nothing there, informing the user that the Might be good to make that clearer in the Heroku UI... ;-) |
We rely on installing devDependencies to run a Webpack build during slug compilation.
Since a few days ago, all pushes are failing now with missing module exceptions but further up the build log the following appears:
I tried setting
YARN_PRODUCTION=false
too, just in case that has an effect, but it did not. This feels like a break change, even if I appreciate the push to support Yarn (as I use it locally with great joy).Is there an advised course of action here other than somehow filtering out
yarn.lock
from the slug?This might be a dupe of #350, but my behaviour is different in that it doesn't blow up when installing deps, just when trying to use them in
heroku-postbuild
script.The text was updated successfully, but these errors were encountered: