Raphael Lopes
Raphael Lopes

Reputation: 153

React App working localhost, blank after deployment on firebase

I created my first React-App. The app itself works well. I use firebase. On localhost everything works, but when I deploy to the hosting, the page is blank, with ZERO errors. I had one error 'Error on manifest.json' that I corrected but now nothing, and still blank.

I have zero ideas of where the problem come from.

Upvotes: 0

Views: 303

Answers (1)

Raphael Lopes
Raphael Lopes

Reputation: 153

Well the problem was actually very stupid. On the firebase.src on my root folder I added :

"hosting": {
  "public": "build"
}

And it worked. It wasn't specified so it add nothing to deploy. Strange I had no info, I checked the deploy logs and found out there was no folder specified being deployed.

Upvotes: 1

Related Questions