-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Heroku 64-bit Ubuntu 14.04 + yarn: Cannot find module '../build/Release/sharp.node' #722
Comments
Hello, are you only able to reproduce this on Heroku? If so, it's probably worth you asking them if they can/will support adding the (It would be a great addition to yarn if it were to support the |
Also having this issue, anyone figure out the cause? |
happening to us as well. we tried to lock the yarn version to |
We'll need more verbose install-time information from Heroku to help debug this problem. If anyone can make that happen, e.g. via paid support, please do so :) |
We were experiencing this issue, and got things working again by setting Our best guess, based on some rudimentary testing, is that heroku is not able or not configured to cache binary files. So if caching is enabled, an initial deploy works fine, but a second deploy will attempt to use the cached modules, which do not contain the necessary binary files. Disabling caching forces the application to always use the correct, uncached |
Also, in case the devs are still curious, here is the output from running
This did not solve the problem, as the file (in fact, the entire |
Yeah we came to the same conclusion, I think due to Heroku's ephemeral file system, while the cache is created the first time the second time when it looks for it the symlink is missing or changed since it's technically a new container |
Great detective work all. A PR to update the Heroku docs with a link to the following would be very welcome. https://devcenter.heroku.com/articles/nodejs-support#cache-behavior |
Docs updated in 5e015cc, thanks all. |
When attempting to build a project on heroku we are experiencing an issue where sharp.node is not being found. Below is the heroku build output:
The text was updated successfully, but these errors were encountered: