# Yarn optional dependancies? do I need them? crashing my heroku build

**URL:** <https://www.ruby-forum.com/t/yarn-optional-dependancies-do-i-need-them-crashing-my-heroku-build/260782>\
**Category:** Deployment\
**Created:** [January 8, 2021, 12:46am UTC](https://www.ruby-forum.com/t/yarn-optional-dependancies-do-i-need-them-crashing-my-heroku-build/260782 "2021-01-08T00:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![merlin2049er](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@merlin2049er](https://www.ruby-forum.com/u/merlin2049er)\
**Post date:** [January 8, 2021, 12:46am UTC](https://www.ruby-forum.com/t/yarn-optional-dependancies-do-i-need-them-crashing-my-heroku-build/260782/1 "2021-01-08T00:46:35Z")

</div>

Trying to deploy on heroku, but it failed and aborted. Only thing I found out was that these yarn optional dependencies are crashing it and are not needed.

[2/4] Fetching packages…  
info fsevents@2.1.3: The platform “linux” is incompatible with this module.  
info “fsevents@2.1.3” is an optional dependency and failed compatibility check. Excluding it from installation.  
info fsevents@1.2.13: The platform “linux” is incompatible with this module.  
info “fsevents@1.2.13” is an optional dependency and failed compatibility check. Excluding it from installation.  
[3/4] Linking dependencies…

rake aborted!  
Errno::ENOENT: No such file or directory @ dir\_initialize - /tmp/build\_f4389500\_/app/assets/javascripts/libraries

Anyone have any idea how to correct this?

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![merlin2049er](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@merlin2049er](https://www.ruby-forum.com/u/merlin2049er)\
**Post date:** [January 8, 2021, 1:21am UTC](https://www.ruby-forum.com/t/yarn-optional-dependancies-do-i-need-them-crashing-my-heroku-build/260782/2 "2021-01-08T01:21:08Z")

</div>

ok i figured out why it was crashing. I installed hotwire-turbo, but it failed to push the empty library folder over to github - and that crashed heroku.

I put a dummy file in there and pushed the folder.
