Heroku rejects builds because of fsevents
juanlanus opened this issue · 3 comments
I ran a deploy to Heroku from my Ubuntu 20 PC.
It consistently failed reporting
npm ERR! fsevents not accessible from jest-haste-map
while loading the dependencies.
As I browsed StackOverflow, I saw a number of questions that mentioned fsevents
in the pasted build logs, that's why I'm writing this here. It's a MacOs-only module.
The solution was to make fsevents optional with
npm i fsevents@latest -f --save-optional
I don't think this can be solved by this buildpack (can it?) but at least this issue and its solution could be mentioned in the troubleshooting section to save rookies like me a lot of blood and tears.
Apart from that, the buildpack worked fine. I could publish a client-only React app without having to learn about deploying, thanks you guys!
Boa noite eu também estou tendo problemas de implantação.Perdoem minha ignorância mas não sei se aqui é o local correto para relatar isso.
-----> Building on the Heroku-20 stack
! error fetching custom buildpack https://buildpack-registry.s3.amazonaws.com/buildpacks/mars/create-react-app-buildpack.tgz.tgz.tgz
! Push failed
THANKS!!!
I met the same issue on Windows 10 while trying to deploy on Heroku.
Ignoring the module allowed me to complete my build.
npm i fsevents@latest -f --save-optional
Thank you !