mars / create-react-app-buildpack

⚛️ Heroku Buildpack for create-react-app: static hosting for React.js web apps
MIT License
3.29k stars 651 forks source link

Heroku rejects builds because of fsevents #187

Open juanlanus opened 3 years ago

juanlanus commented 3 years ago

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!

antoniojobs commented 3 years ago

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

g3david405 commented 3 years ago

THANKS!!!

antoineGH commented 3 years ago

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 !