Fixed Firebase config and used better react-sketch library #22
+12
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Alright, so right now the production website is blank, even though everything works in dev. I dug around for an hour and realized that the reason this was happening was because the production version of the project actually crashed and had errors, hence the white screen. If you open up the console you can see any errors on production.
I ended up doing a bunch of stuff but in the end it came down to the fact that the
react-sketch
library was outdated and contained many bugs. See here and here for the two major issues I found with the library. The latter issue prevented it from working on Firefox specifically and the former issue prevented it from working on production.The band-aid solution is to use a fork of
react-sketch
that's published on npm as 'react-sketch2'. See here for the forked project, which allows it to successfully build and run on my local machine. It turns out the original library built properly on my machine, but didn't run. Note that every version runs on the dev build, so you wouldn't notice any errors that way which was why production never matched what was on everyone's machines.There also was in issue with our Firebase config (we didn't have an
appId
because you need to create an "app" on Firebase. I did that in the console and updated the config. Hopefully this one works!