thedevelobear/react-rewards

Canvas Null Issue

DwayneSamuels opened this issue · 4 comments

Using this in React. All works well locally but when pushed to production the following error is thrown: TypeError: Cannot set property 'fillStyle' of null

How can I go about resolving this canvas related issue?

Hey!
Whoah, that's new to me. As for confetti/emoji I'm not using canvas. It must be related to the Lottie package (it probably uses canvas internally), so at first I would check there.
Were you trying to implement the memphis animation?

No, I implemented the confetti animation.

Hey. Did you figure something out?

I'm closing this issue as nobody else had it and I couldn't reproduce it.